您好我是OpenCV和C++的新手。我一直在尋找使用setMouseCallback功能,做到了像這樣:OpenCV mat * image =(mat *)image
setMouseCallback("Window Name", functionName, &frame);
void functionName("int event, int x, int y, int flag, void* param"){
Mat *image = (Mat*)param;
//other stuff here
}
我只想問...爲什麼我必須把(太*)參數,而不是隻把墊* PARAM。
在此先感謝!
什麼是'param'? – juanchopanza 2014-08-30 08:42:39