필터 지우기
필터 지우기

How to display 2 images with different sizes(dimension, row and column) side by side in one figure?

조회 수: 5 (최근 30일)
Are there anyways to display 2 images with different sizes(dimension, row and column) side by side in one figure?
I try using imshowpair(image1,image2,montage), but it does not work.
Thank you!

답변 (1개)

Sachin Shrestha
Sachin Shrestha 2016년 6월 9일
Hi Issara,
I think the problem is that you forget to keep the montage inside the quotes (for e.g. 'montage'). I tried following code and it is working perfectly fine. Could you also please give this a try and let me know in case of any issue?
image1=imread('circles.png'); % size 256x256
image2=imread('coins.png'); % size 300x246
imshowpair(image1,image2,'montage');
Hope this will help.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by