destroy a mousecallback
Hi everyone,
In an MFC application i sometimes have to start and stop my camera. The frames are displayed in a MFC picture control which is linked to an opencv Window. So far, so good. I used the mousecallback to perform some algorithms and it works
The only problem is that when i stop the camera and destroy the opencv window, the program bugs. I guess it's because i set the mousecallback on that windows which no longer exists. So my question is, how can i destroy the mousecallback?
Thanks beforehand =)