what exactly happend when you use the command imresize?

11 ビュー (過去 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 Center および File ExchangeRead, 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