Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

onMouse function error

my code void CBeautyDlg::onMouse(int events, int x, int y, int flag, void* ustg) {...}

void CBeautyDlg::OnBnClickedButton6( ... inputImage = m_Image;

inputImage_clone = inputImage.clone();
createMosaicImage(inputImage, inputImage_mosaic, neightbourhood);

namedWindow("myshowWnd", 0);
setMouseCallback("myshowWnd", onMouse,0);

)

but error on setMouseCallback("myshowWnd", onMouse,0);

notify below:

"Void (CBeautyDlg:: *) (int events, int x, int y, int flag, void void)" type of real participation "type:" type parameter is incompatible.

How to fix the error?

Thank you.

onMouse function error

my code

 void CBeautyDlg::onMouse(int events, int x, int y, int flag, void* ustg) {...}

{...}

void CBeautyDlg::OnBnClickedButton6( ... inputImage = m_Image;

m_Image;
inputImage_clone = inputImage.clone();
createMosaicImage(inputImage, inputImage_mosaic, neightbourhood);
namedWindow("myshowWnd", 0);
setMouseCallback("myshowWnd", onMouse,0);
 )

)

but error on setMouseCallback("myshowWnd", onMouse,0);

notify below:

"Void (CBeautyDlg:: *) (int events, int x, int y, int flag, void void)" type of real participation "type:" type parameter is incompatible.

How to fix the error?

Thank you.