Different images between MATLAB and ImageMagick
Posted: 2019-09-20T01:06:35-07:00
Hi,
I'm using ImageMagick 7.0.8-64 Q16 for Windows and MATLAB R2019. I'm doing the same operation (resizing with bicubic interpolation method) in both programs.
ImageMagick code:
MATLAB code
Now, the difference is not visible but reading again both images in MATLAB and ImageJ they are a little bit different in terms of pixels count. I mean that the pixel count is the same but summing the image matrix in MATLAB give me a different result.
How can it be possible? Do IM and Matlab could have different functions even for these simple operations?
I'm using ImageMagick 7.0.8-64 Q16 for Windows and MATLAB R2019. I'm doing the same operation (resizing with bicubic interpolation method) in both programs.
ImageMagick code:
Code: Select all
magick start.png -resize 400x200! -interpolate Catrom -quality 100 start_magick_100.png
Code: Select all
start_matlab = imresize(start, [200 400], "bicubic")
imwrite(start_matlab, "start_matlab.png", "png")
How can it be possible? Do IM and Matlab could have different functions even for these simple operations?