make two images in same size and same dimensions

35 Ansichten (letzte 30 Tage)
Mohannad Nasir
Mohannad Nasir am 19 Jan. 2019
Beantwortet: Image Analyst am 19 Jan. 2019
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 ?

Antworten (1)

Image Analyst
Image Analyst am 19 Jan. 2019
Use imresize()
image2 = imresize(image2, size(image1));

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by