make two images in same size and same dimensions

조회 수: 36 (최근 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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by