OpenCV vs Matlab : Different Values on pixels with imread

后端 未结 2 907
庸人自扰
庸人自扰 2020-12-05 11:45

I have encountered a problem with the function imread() in Matlab (2014) and OpenCV (3.0) on Windows 7 with jpg files.

I don\'t have the same values by

2条回答
  •  执念已碎
    2020-12-05 11:54

    For people who would read this topic this is the final explanation:

    It comes from the version of libjpeg. The version 6b (OpenCV used this one before 2.4.11) works in the same way as Matlab 2014b. From version 8 of libjpeg, I had the other results I mentioned above.

    To solve my problem (I used some difference of image and background to create a mask and my problem was that I had some snow in the image with OpenCV (without libjeg version 6b), I compiled OpenCV 3.0 with libjpeg 6b. (I also had to import 2 runtime libraries and put it in my project, found freely on the web).

    I did not report bug on OpenCV. To be honest, I did not manage, I did not understand how to do in their website even I tried...

提交回复
热议问题