This question is for research purpose. We are working on Sobel computation. We are wondering, if and how, to run a loop (infinite loop) on a image to keep computing (sobel, prewitt anything) and when I am hitting a certain keyboard key say “Q”, the computation will stop and show us the result. If I hit resume again, keyboard key “R”, the computation will start again.
We have almost primary level idea in openGL like how to draw a point, shape etc and we would love to get some suggestions or work-around.