Artifacts appear using imread function from opencv [closed]
Hi, all
I use imread function to read one jpeg file and save the rgb image in bmp format. Comparing the two files, I found artifacts appear and use green circle to denote artifacts. The version of OpenCV is 3.0. I compile the libraries by myself with SSE, SSE2 and SSE3 switchd on (default setting). My OS is windows 7 professional. You can use the following image to check.
original jpg file: http://pan.baidu.com/s/1nt09XTB
readed bmp file with green circle: http://pan.baidu.com/s/1FP72I
If I read the jpeg file in Matlab, the rgb image is correct. I save rgb image in png format in Matlab, read the png file using opencv and save the loaded image in bmp file. Everything is OK. It seems that there is a problem with jpeg decoder. The jpeg library used is libjpeg.lib.
Regards Jogging
Please, update your question and include in it your images rather than posting them in a Chinese site that no one understands
Add the code on how you define the imwrite in OpenCV. I am guessing you are not supplying compression parameters?