I am trying to save an image from OpenCV on my mac and I am using the following code and so far it has not been working.
cv::imwrite(\"/Users/nickporter/Desk
OpenCV 3.2 imwrite() seems to have a problem to write jpg file with Windows Debug mode. I use this way instead of imwrite().
cv::Mat cvImage; #ifdef DEBUG IplImage image = IplImage(cvImage); cvSaveImage("filename.jpg", &image); #else cv::imwrite("filename.jpg", cvImage); #endif