lazywei/go-opencv — pull request #23 by deltamobile (2014-10-17 19:57:47+00:00)
Title: Run processing in main thread instead of widget.

I had tried running the webcam demo, but it didn't quite work as expected. The edge-detected image wasn't displayed until the slider was moved. And moving the threshold slider didn't update the actual threshold used.

So now the function passed to CreateTrackbar just updates a variable with the new threshold. After creating the trackbar, we now just enter the infinite loop for processing the webcam images.