如何在OpenCV中删除mouseCallback [英] How to Remove mouseCallback in OpenCV

查看:158
本文介绍了如何在OpenCV中删除mouseCallback的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有C ++的OpenCV中,有没有一种方法可以删除

In OpenCV with C++, Is there a way to remove the

mouseHandler(int event, int x, int y, int flags, void* param) {}

通过功能添加到窗口"image_window"

added to a window "image_window" by function

cv::setMouseCallback("image_window", mouseHandler, (void*)param);

感谢您的建议! :-)

Thanks for your advice! :-)

推荐答案

将窗口回调函数设置为NULL,如下所示:

Set the window callback function to NULL like this:

cv::setMouseCallback("image_window", NULL, NULL);

这篇关于如何在OpenCV中删除mouseCallback的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆