make two images in same size and same dimensions

35 ビュー (過去 30 日間)
Mohannad Nasir
Mohannad Nasir 2019 年 1 月 19 日
回答済み: Image Analyst 2019 年 1 月 19 日
I had two images one is the original image and the other is the mask of it .. when i applied my code it shows an erorr ( Matrix dimensions must agree.)
What should I do to make the two images in same size ?

回答 (1 件)

Image Analyst
Image Analyst 2019 年 1 月 19 日
Use imresize()
image2 = imresize(image2, size(image1));

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by