How do I subplot multiple tiles that I divided from a satellite image in one figure?
이전 댓글 표시
I have to divide my satellite image into 256 tiles of 500 by 500 pixels. I use mat2cell function to do that. After that I want to see the result by displaying in one figure.
Please help me figure out how to subplot it!
Here is my code :
tiles=zeros(500,500);
tiles = mat2cell(TOARef_B{5}, [500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 261], [500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 101]);
for m=1:16
for n=1:16
subplot(16,16,256); imshow(tiles{m,n});
end
end
채택된 답변
추가 답변 (1개)
KSSV
2020년 8월 4일
count = 0 ;
for m=1:16
for n=1:16
count = count+1 ;
subplot(16,16,count); imshow(tiles{m,n});
end
end
Read about montage. This would be better.
댓글 수: 3
Oanh La
2020년 8월 4일
KSSV
2020년 8월 4일
Thanks is accepting/ voting the answer..:)
Image Analyst
2020년 8월 4일
I think they're recommending imtile() over montage().
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!