montage of 3 image

24 views (last 30 days)
PK
PK on 6 Oct 2016
Edited: PK on 6 Oct 2016
I want to create a montage of same 5 image.Please help!

Accepted Answer

Matthew Eicholtz
Matthew Eicholtz on 6 Oct 2016
See montage.
An example:
I = imread('peppers.png');
R = I(:,:,1);
G = I(:,:,2);
B = I(:,:,3);
J = rgb2gray(I);
K = im2bw(I)*255;
img = cat(4,R,G,B,J,K);
figure;
montage(img,'Size',[1 5]);
  2 Comments
Matthew Eicholtz
Matthew Eicholtz on 6 Oct 2016
I = imread('peppers.png');
N = 5;
J = [];
for ii=1:N
J = cat(4,J,I);
end
figure;
montage(J,'size',[1 N]);

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by