how to show 20 images in single figure using matlab ?
이전 댓글 표시
I have 20 images and I want to show them in single figure in a single axes . I am very new to matlab and I have to get this thing done by tomorrow and so I don't have time to learn to do that. I basically want to ask is when a single image is displayed it is shown with x and y axis (two directions) and if I rotate the figure using 'Rotate 3D' button , I am able to see that this image is occupying z = 0 plane . What I want is that I can display 20 images , on different xy planes , like image1 on z = 0 plane , image2 on z = 1 plane and so on ... How to achieve this please help me out.
채택된 답변
추가 답변 (2개)
Alex
2015년 7월 8일
0 개 추천
Does subplot(n,m,i) help?
댓글 수: 3
Himank Airon
2015년 7월 8일
Alex
2015년 7월 8일
MATLAB doesn't have any function that quickly 'voxel'rize the images. The property ZAxis in functions like image/imagesc/image can't be modified.
Image Analyst
2015년 7월 8일
I don't know what 'voxel'rize means but you can create versions/copies of the image at different z levels using cat(), like I did in my answer, or using repmat().
Steven Lord
2015년 7월 8일
0 개 추천
Displaying them all in a single axis is going to be messy, I suspect. Try the Image Processing Toolbox function MONTAGE or use SUBPLOT as Alex has suggested. If those don't do what you want, you will need to "pack" the images together and then call IMAGE or IMAGESC or something similar. I don't have an example of how to do this; you would need to determine the best approach for your data, based on their sizes, color ranges, etc.
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!