How to remove mouseCallback in OpenCV

In OpenCV with C ++, is there a way to remove

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

added to window "image_window" using function

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

Thank you for your advice!: -)

+4
source share
1 answer

Define the window callback function NULLas follows:

cv::setMouseCallback("image_window", NULL, NULL);
+9
source

All Articles