Abort detection

Hi everyone,

I use HoughCircles and trigger it every time the user uses controls that change one of the function’s input parameters. For example, I have a spin control for the radius. My problem is that a user might trigger it’s arrow buttons multiple times in quick succession and each time a possibly time consuming HoughCircles run is started.
Can I somehow abort an ongoing detection as soon as the user changes the parameters?

If that is not possible, would you recommend running each detection in a separate thread and just abort the whole thread when parameters have changed before the detection is finished?
Thanx!

No.

If you want to run it in a thread, and then kill the thread, you could try that, but be aware of the downsides that are inherent in killing a thread.