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.
Image Analyst
Image Analyst 2015 年 12 月 11 日
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 ExchangeGeometric 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