Search code examples
matlabimage-processing

imshowpair function


Is it possible to use imshowpair function in MATLAB to display images next to each other instead of over one another?

So far I have:

figure;
imshowpair(imgA, imgB, 'diff');

I have about 100 images I would like to display. Is it possible?


Solution

  • Indeed it is possible.

    imshowpair(im1, im2, 'montage')
    

    It only displays 2 images, though. If you need to display many images of the same size use montage or the newer imtile function.