Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you can, update your OpenCV to 2.4.11. If you can't:

  1. what about your jpeg file ? is it a standard jpg or something other like progressive jpeg (this is supported since 2.4.9) ?
  2. did you try another file ?
  3. what about setting the flag "Multi-threaded Debug (/MTd)" in your Visual Studio Project ?
  4. what about your OpenCV installation ... are you mixing up release and debug OpenCV ?
  5. what about using old C API IplImage* imgC = cvLoadImage(filename); than convert to Mat with Mat img = Mat(imgC); ?

If you can, update your OpenCV to 2.4.11. If you can't:

  1. what about your jpeg file ? is it a standard jpg or something other like progressive jpeg (this is supported since 2.4.9) ?
  2. did you try another file ?
  3. what about setting the flag "Multi-threaded Debug (/MTd)" in your Visual Studio Project ?
  4. what about your OpenCV installation ... are you mixing up release and debug OpenCV ?
  5. what about using old C API IplImage* imgC = cvLoadImage(filename); than convert to Mat with Mat img = Mat(imgC); ?