montage of 3 image

1 回表示 (過去 30 日間)
PK
PK 2016 年 10 月 6 日
編集済み: PK 2016 年 10 月 6 日
I want to create a montage of same 5 image.Please help!

採用された回答

Matthew Eicholtz
Matthew Eicholtz 2016 年 10 月 6 日
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 件のコメント
PK
PK 2016 年 10 月 6 日
編集済み: PK 2016 年 10 月 6 日
This answer is good. It is useful but I want to take with only one photo image file. Pleas help again...
Matthew Eicholtz
Matthew Eicholtz 2016 年 10 月 6 日
I = imread('peppers.png');
N = 5;
J = [];
for ii=1:N
J = cat(4,J,I);
end
figure;
montage(J,'size',[1 N]);

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by