Image size (height) normalization

I have the following binary images: 1)
2)
The height of the above images are 53 and 104 pixels respectively. I want to normalize these two height into for example 80 pixels. So is there any function in Matlab that can do that?

답변 (1개)

Image Analyst
Image Analyst 2015년 12월 10일

0 개 추천

Use imresize();
resizedImage1 = imresize(binaryImage1, 80/53);
resizedImage2 = imresize(binaryImage2, 80/104);

댓글 수: 2

Mohammad
Mohammad 2015년 12월 11일
Thanks, but I want only to resize the height of the image and keep the width as is.
Just give the actual rows and columns you want
[rows, columns] = size(binaryImage1);
resizedImage1 = imresize(binaryImage1, [80, columns]);
[rows, columns] = size(binaryImage2);
resizedImage2 = imresize(binaryImage2, [80, columns]);

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

카테고리

도움말 센터File Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

질문:

2015년 12월 10일

댓글:

2015년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by