OpenCV setMouseCallback
Hi,
i am trying to set a mouseCallback function using openCV within an ros application.
So i defined a function prototype within my class defintion object_tracker looking like this:
class object_tracker
{
public:
...
private:
void onMouse( int event, int x, int y, int flags, void* param );
Function itself looks like this:
void object_tracker::onMouse( int event, int x, int y, int flags, void* param )
{
...
}
When i now set the mouseCallback
setMouseCallback( "CamShift Demo", object_tracker::onMouse, 0 );
it says:
/home/namco/ros/ object_tracker/src/object_tracker.cpp:323: Fehler:argument of type ‘void ( object_tracker::)(int, int, int, int, void)’ does not match ‘cv::MouseCallback {aka void ( *)(int, int, int, int, void)}’
But when i use this with normal cpp, everything works fine. What's wrong?
Hi boFFeL, did you solve this problem? I met the same issue as you... Best regards K