Ask Your Question

dantdj's profile - activity

2013-12-08 16:58:56 -0600 commented question Unhandled exception in OpenCV 3.0 highgui module

I believe so, yeah. Using Visual Studio 2013, and compiled OpenCV with it. Libraries seem to check out too, considering every other function works.

2013-12-07 14:18:05 -0600 received badge  Student (source)
2013-12-07 14:09:38 -0600 received badge  Editor (source)
2013-12-07 14:00:27 -0600 asked a question Unhandled exception in OpenCV 3.0 highgui module

I seem to be having a problem with the highgui module in OpenCV 3.0, with the imwrite() function. Whenever I try to save an image using that function, the program throws an unhandled exception, and the Visual Studio debugger points to line 604 in grfmt_jpeg.cpp, which, from what I can see, deals with the param vector that can be given in the imwrite() function. However, I'm not passing one in, so it should just pass through.

image description

The code calling the function is imwrite(endproduct, thumbnail);, where endproduct is equal to a cv::String containing C:\Users\Daniel\Pictures\London, and thumbnail is a cv::Mat object, one that displays perfectly using imshow().

Any ideas as to why it's getting stuck there? It'd be greatly appreciated.