Matlab 3d 体积可视化和 3d 叠加
问题几乎就是标题。
我有一个作为原始数据加载的 3d 体积 [256, 256, 256] = size(A)
。它仅包含零和一的值,其中 1 代表结构,0 代表“空气”。
我想在 MATLAB 中可视化该结构,然后对其运行算法并在其上覆盖一个覆盖层,假设颜色为红色。
更准确地说:
- 我如何可视化 3d 体积。 0是透明,1是半透明?
- 在 3D 可视化中绘制一条线作为叠加?
我已经阅读了 MathWorks 教程,但它们没有帮助。 我尝试使用 set
命令,但它完全失败,对于我尝试的每个属性都显示“无效的根属性”。
The question is pretty much the title.
I have a 3d volume loaded as raw data [256, 256, 256] = size(A)
. It contains only values of zero's and ones, where the 1's represent the structure and 0's the "air".
I want to visualize the structure in MATLAB and then run an algorithm on it and put an overlay on it, let's say in the color red.
So to be more precise:
- How do i visualize the 3d volume. 0's transparent, 1's semitransparent?
- Plot a line in the 3d visualization as an overlay?
I already read the MathWorks tutorials and they didn't help.
I tried using the set
command, but it fails completely saying for every property I try "invalid root property".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定我是否理解问题的第二部分,但以下是如何使用 等值面(我正在使用流体-流示例数据)
要了解有关 MATLAB 中体积可视化的更多信息,请参阅这篇优秀的 视频教程系列发布在 Doug 的博客上
I'm not sure I understand the second part of the question, but here's how you visualize a 3D volume using isosurfaces (I'm using the fluid-flow example data)
To learn more about volume visualization in MATLAB, refer to this excellent video tutorial series posted on Doug's blog
有一个名为 vol3d 的优秀实用程序,由 mathworks 员工开发乔·康蒂.我认为它完全满足了您的可视化需求 - 尝试一下。
更新 (11/2012):上面链接的文件不再存在。不过这里有一个新版本。
There's an excellent utility called vol3d, by mathworks employee Joe Conti. I think it addresses your visualization needs exactly - give it a try.
Update (11/2012): File that is linked to above no longer exists. There is a new version here though.