what exactly happend when you use the command imresize?

조회 수: 12 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2014년 3월 24일
편집: Alex Taylor 2014년 3월 24일
what exactly happend when you use the command imresize? does it means compression? will it affect the image quality?

채택된 답변

Alex Taylor
Alex Taylor 2014년 3월 24일
편집: Alex Taylor 2014년 3월 24일
This question has essentially been asked before:
In short, resizing is a geometric transformation, or more precisely a scale transformation. For each pixel in the output image, imresize is doing a point transformation to find where the corresponding point maps in the input image. Once imresize has formed a collection of remapped points, interpolatation is performed to resolve sub-pixel remapped locations (the default of imresize is bicubic interpolation).
If the output image is being scaled with a scale factor less than 1, then by default a low-pass anti-aliasing filter is applied to the input image prior to the steps described above to prevent high frequency content from the input image introducing distortions due to downsampling the input image. You can turn this anti-aliasing filtering off to see how it effects results. It's generally a very important step when down sizing an image to get visually nice looking resized images.

추가 답변 (1개)

Jan
Jan 2014년 3월 24일
The image array is resized as explained in the documentation:
doc imresize
So if you have a 100x100 pixel image, you can transform it into a 200x200 or 20x30 pixel image. Resizing destroys information when you reduce the size and even increasing the size will reduce the quality at least a little bit due to rounding errors.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by