How does the function "imresize" work in details ?

조회 수: 10 (최근 30일)
Chakib
Chakib 2013년 7월 23일
댓글: Rafi Ahmed 2021년 7월 16일
During my internship I discovered the function "imresize" which I used it to enhance the resolution of images (for example : I transformed a 32x32 image into a 128x128 image) and it gave me really good results.
So I read the code of the function and it didn't help me to understand it.
So I am asking you to explain to me how it works or to give me links to articles and publications on resolution enhancement theories. The second choice would be better for me.
Thanks to all and sorry for my english.
BELAFDIL Chakib
  댓글 수: 1
aditi bhateja
aditi bhateja 2020년 9월 25일
Can you provide the code of the function? Any link or publications?

댓글을 달려면 로그인하십시오.

채택된 답변

Elad
Elad 2013년 7월 23일
I'm not sure, (did'nt look at the function's code). but, probably using some kind of bi-linear interrpolation: http://en.wikipedia.org/wiki/Bilinear_interpolation
  댓글 수: 1
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis 2019년 5월 1일
I think imresize function using Bicubic Interpolation as default.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Alex Taylor
Alex Taylor 2013년 7월 23일
I would take at the series on spatial transformations from Steve on Image Processing, starting with Terminology and Notation:
Imresize is simply applying a scale transformation to the original image. You could think of this operation as the application of the following affine transformation matrix to the original image:
T = [4 0 0; 0 4 0; 0 0 1];
Imresize uses inverse mapping to figure out where each point in the output grid maps in the input grid. We then interpolate within the input grid to determine the output grid values. By default, imresize uses bicubic interpolation by default.
Applying a scale geometric transformation to an image is not a "resolution enhancement" technique. You do not have any more information in the output image than you started with in the input image, you have simply interpolated to create a larger grid than you started with.
This is not applicable to your particular problem, because you are increasing the size of your original image, but if you resize with a scale factor of less than 1, imresize applies an anti-aliasing filter prior to resizing.
  댓글 수: 1
Rafi Ahmed
Rafi Ahmed 2021년 7월 16일
Hello Alex,
I have a question regarding the grid values. If I slice an image for the row elements only (e.g. 360 by 360 grid image is sliced to 180 by 360), how does that affect the grid size and values? Does it reduce the grid values too?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by