Artifacts appear using imread function from opencv

asked 2015-11-28 00:21:02 -0500

jogging gravatar image

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

edit retag flag offensive close merge delete

Comments

1

Please, update your question and include in it your images rather than posting them in a Chinese site that no one understands

LorenaGdL gravatar imageLorenaGdL ( 2015-11-28 03:30:37 -0500 )edit

Add the code on how you define the imwrite in OpenCV. I am guessing you are not supplying compression parameters?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-30 03:30:39 -0500 )edit