diff --git a/ColorSpaces/interactiveColorDetect.cpp b/ColorSpaces/interactiveColorDetect.cpp index eab9abc8b..5f006e12a 100644 --- a/ColorSpaces/interactiveColorDetect.cpp +++ b/ColorSpaces/interactiveColorDetect.cpp @@ -9,7 +9,7 @@ Mat img, placeholder; // Callback function for any event on he mouse void onMouse( int event, int x, int y, int flags, void* userdata ) { - if( event == EVENT_MOUSEMOVE ) + if( event == EVENT_MOUSEMOVE and (x(y, x)); @@ -102,4 +102,4 @@ int main( int argc, const char** argv ) } } return 0; -} \ No newline at end of file +}