Thursday 8 December 2011

Multiple Images Shows In One Figure Window | Montage Matlab example code

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.



Related Search : More than images shows on matlab figure, Montage Matlab example ,Montage Matlab example source code ,combine more than images on figure window ,| Simple Matlab example source code and Tutorial

Kindly Bookmark and Share it:

2 comments:

Related Posts Plugin for WordPress, Blogger...