Ask Your Question
2

destroy a mousecallback

asked 2014-05-20 17:58:34 -0500

Stoo gravatar image

updated 2014-05-21 02:17:28 -0500

berak gravatar image

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 =)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-21 02:16:01 -0500

berak gravatar image

setMouseCallback(windowname,NULL);

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-05-20 17:58:34 -0500

Seen: 312 times

Last updated: May 20 '14