필터 지우기
필터 지우기

How does the function imresize(matrix, [length, width]) work to rescale a figure?

조회 수: 3 (최근 30일)
Jenna
Jenna 2013년 6월 5일
I am trying to do binning of pixels in several images. I wanted to use this function, but I do not understand if it is working properly. To check the way the function works, I tried this: a = [1 2 3; 4 5 6; 1 2 3] and imresize(a, [2,2]) which gave me [2.4074 3.8426; 2.4074 3.8426]. I also tried b = [1 1 2 2; 1 1 2 2; 3 3 4 4; 3 3 4 4] and imresize(b, [2,2]) gave me [1.1992 2.0664; 2.9336 3.8008]. I really do not understand how matlab calculated these numbers.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by