Unhandled exception in OpenCV 3.0 highgui module

asked 2013-12-07 14:00:27 -0500

dantdj gravatar image

updated 2013-12-07 14:35:50 -0500

berak gravatar image

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.

edit retag flag offensive close merge delete

Comments

Are you sure that you use correct build OpenCV? I mean release/debug and Visual Studio version.

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-12-08 13:44:05 -0500 )edit

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

dantdj gravatar imagedantdj ( 2013-12-08 16:58:56 -0500 )edit