我使用下一个代码来显示来自我相机的视频:
VideoCapture cap(1);
if (!cap.isOpened()) // check if we succeeded
{
return;
}
Mat edges;
namedWindow("Video", 1);
for (;;)
{
//set the callback function for any mouse event
setMouseCallback("Video", CallBackFunction, NULL);
cap >> frame; // get a new frame from camera
imshow("Video", frame);
//if (waitKey(30) >= 0) break;
waitKey(DELAY_TIME);
}
但是,我希望视频图像显示为凹/凸图像。有没有快速简便的方法呢?
由于