If we want to show two images in the screen at the same time we have the syntax.
For eg:If another image is displayed using imshow,Matlab replaces the image in the screen with the new image.It displays only the second image.
To keep the first image & second image in the screen we use the function"figure" .
SYNTAX as imshow(first image),figure,imshow(second image)
It displays both the images.
We get the first input image called 'greatwall.jpg' & second image called 'FLOWERS.jpg'.It will be displayed at the same time.
MATLAB CODING:
A=imread('greatwall.jpg');
c=imread('FLOWERS.jpg');
imshow(A),figure, imshow(c);

No comments:
Post a Comment