I am getting different pixel values when i tried to read image using both opencv imread() and matlab imread() for same image. I would like to know the reason? [closed]

asked 2016-08-22 06:29:13 -0600

Uma gravatar image

updated 2020-06-09 18:12:02 -0600

I tried to process the image for my assignment. When I read the image using both Matlab imread() and opencv imread() function, I am getting different pixel value.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2016-08-22 07:16:20.079186

Comments

is that a jpeg (or anything "lossy" ?)

(different image libs will get you different results then.)

berak gravatar imageberak ( 2016-08-22 06:46:40 -0600 )edit

many reason
1

2

3

....

LBerger gravatar imageLBerger ( 2016-08-22 06:52:44 -0600 )edit

Thanks all . @berak Yes it is jpeg image

Uma gravatar imageUma ( 2016-08-22 07:05:07 -0600 )edit

so, avoid those, if you need to compare results. .bmp or .png should be safe.

berak gravatar imageberak ( 2016-08-22 07:08:57 -0600 )edit

Thanks @berak & @LBerger

Uma gravatar imageUma ( 2016-08-22 07:14:56 -0600 )edit