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

2 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by