필터 지우기
필터 지우기

How to resize image without changing aspect ratio of the images?

조회 수: 1 (최근 30일)
anu
anu 2017년 4월 3일
댓글: sanakhan 2017년 4월 26일
I have collection 100 images. Each image is of different size and I want to make all images of the same size with changing aspect ratio. How to do it?
  댓글 수: 4
Jan
Jan 2017년 4월 3일
@anu: In the title you want "without" changing the aspect ratio, in the body it is "with". Please clarify this.
sanakhan
sanakhan 2017년 4월 26일
B = imresize(A,[numrows numcols]) no of rows and columns can be selected according to aspect ratio.
Try [NaN NaN] if you want to preserve the aspect ratio as that of input image or select rows & cols of your own choice.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by