필터 지우기
필터 지우기

montage of 3 image

조회 수: 6 (최근 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개)

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by