Ask Your Question
2

destroy a mousecallback

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

Stoo gravatar image

updated 2020-09-20 04:54:22 -0600

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 -0600

berak gravatar image

setMouseCallback(windowname,NULL);

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 1,542 times

Last updated: May 20 '14