Plotting in 3D volume

2 次查看(过去 30 天)
Amadeus
Amadeus 2012-12-11
Hi,
I have done a mapping and at the end of the mapping I got a <1383x1544x344 double> matrix named M. Now I want to visualize it in 3D volume. But how can I do it?
I saw too many questions about this problem. But I could not make use of any them. Could you please suggest me a basic solution to my problem? I only need to unite all of those 344 slices and plot them in 3D volume.
I will be really grateful for your help.
Regards,
Amadeus

采纳的回答

Walter Roberson
Walter Roberson 2012-12-11
Should the locations be treated as point-like objects, or should they have a definite volume (e.g., a sphere), or do they represent voxels ?
You have three spacial dimensions and one data dimension (the data value at each location.) How do you want to represent this 4th dimension? Across for x, up for y, perspective for slice number, and what for the data value?
  5 个评论
Amadeus
Amadeus 2012-12-11
Sorry I did not understand why if I use white (maybe I should say empty?) for (x,y,z)=0 and black if it is different than 0, then everything underneath the top layer would be blocked? If I can rotate the 3D output, I guess I can clearly see everything?
Walter Roberson
Walter Roberson 2012-12-11
When you use 0 for an image location, that maps into the lowest color of the colormap, what-ever that happens to be. But it is still going to be a color. "transparent" is not a color.
Fortunately, in images you can use Alpha to indicate transparency, using 0 for the alpha to make a location completely transparent. However, images cannot have a Z component.
So what you have to do is create patch() or surface objects, as those can have Z components. And you have to put something image-like on the surface you crated. Which you can do by using texture mapping

请先登录,再进行评论。

更多回答(1 个)

Image Analyst
Image Analyst 2012-12-11
For true volume visualization you'll need a real 3D program meant for that kind of thing, like Avizo http://www.vsg3d.com/avizo/overview. MATLAB does have some primitive things to do certain limited types of volume visualization. They're listed in the help in the section on 3D visualization. For more advanced things you'll need a program like Avizo or similar programs. Avizo blows MATLAB away when it comes to 3D visualization.

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by