Here We discuss with matlab motage function.This function used to displays more then two images shows on Matlab Figure window.This motage function displays matlab 4D vector image variable on figure window.In below we give some example for this function operations.
Code:
clc
clear all
close all
warning off
img1 = imresize(imread('images\007.JPG'),[512 512]);
img2 = imresize(imread('images\18MO.JPG'),[512 512]);
img3 = imresize(imread('images\1984B.JPG'),[512 512]);
img4 = imresize(imread('images\280.jpg'),[512 512]);
combine_img(:,:,:,1) = img1;
combine_img(:,:,:,2) = img2;
combine_img(:,:,:,3) = img3;
combine_img(:,:,:,4) = img4;
montage(combine_img);
In above script explain montage operations.Here we read 4 images and generate one 4 dimensional array.This array read 4 images and store it.Finally display using that array using montage function.This out put as follows.
Great o_O
ReplyDeleteThank you :-)
ReplyDelete