how can I display several 2D images as a 3D volume?

I have several 2d data. imagine the data in x,z corrdinates. the best plot for me is using imagesc command to plot the 2D image. now I want to plot theese sections parallel to each other with constant distance between and in y direction in 3D volume. Could you help me for that?

답변 (1개)

Ben11
Ben11 2014년 7월 29일
Do you mean like playing a movie/scrolling through your images? If so I would do the following:
1) Build a simple GUI in which there is an axes and a slider (and anything you like)
2) Load all your 2D images into cells, forming a cell array of size (1 x NumberImages) for example.
ImageCell = cell(1,NumberImages);
for k = 1:NumberImages
ImageCell{k} = imread(Name of your files);
end
3) Display your images in the axes using imagesc and scroll through them with the slider or play a movie with a play/stop pushbutton for instance.
Hope that helps get you started. If you need clarifications please ask!

댓글 수: 3

Hamed
Hamed 2014년 7월 29일
thanks a lot for your answer. Actually I don't want to play a movie. imagine that I have several matrices. each matric has 100X200 values(xz plane) and a y coordinate. I want to plot these images color coded (parallel plains) in a 3d box transparently.
Ben11
Ben11 2014년 7월 29일
oh ok I see sorry for the confusion!
Ben11
Ben11 2014년 7월 30일
Would this submission from the file exchange solve your problem?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

제품

태그

질문:

2014년 7월 29일

댓글:

2014년 7월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by