在 MATLAB 中绘制体积数据 [英] Plotting volumetric data in MATLAB

查看:19
本文介绍了在 MATLAB 中绘制体积数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Matlab 中工作,我有一个尺寸为 384x512x160 的 3d 矩阵,它由 384x512 个切片组成.

我如何绘制这样的数据?

解决方案

您真正拥有的是体积数据.

我猜你对每个 X、Y、Z 都有一个 C 值.这实际上很大程度上取决于您拥有的数据类型.您需要为特定答案提供更多信息.

总的来说,可以看看体积数据可视化技术,但这样做的方法不止一种.下面我会给你留下一些你可能想尝试的例子.


滑动

一种选择是使用 FE 的


Pcolor3

一个有用的工具,如果你有平滑"3D 数据是


免责声明:我与这里提供的任何工具箱都没有关系,我根据自己的意见选择了它们.可能还有更多相关工具,如果您想添加一些工具,请自由编辑问题.

I am working in Matlab and I have a 3d matrix with dimensions 384x512x160, which is made of 384x512 slices.

How can I plot data like that?

解决方案

What you really have is Volumetric data.

I guess that you have is a value of C for every X,Y,Z. And it actually depends a lot in what type of data you have. You'd need to give more information for an specific answer.

In general have a look to Volumetric data visualization techniques, but there is not just one way of doing this. Following i will leave you some examples you may want to try.


Slideomatic

One option is to use the Sliceomatic from FE:


Plotting slices

If you have medical data (or data on a big range) you may want to use the typical approach of plotting just some of the slices. You can do that using subplot() and imshow(squeeze(:,:, slice)), or by just concatenating all slices together as img=[squeeze(:,:, slice1)) squeeze(:,:, slice2)); squeeze(:,:, slice3)) squeeze(:,:, slice4))], for example.


Isosurfaces

You may also just want to plot some equipotential surfaces of your data. You can create some surfaces and plot them using isosurface:


Vold3D for indexed images

Or if your image is indexed image you may want to use vol3D


Pcolor3

A useful tool if you have "smooth" 3D data is pcolor3, as it fills the 3D volume with semi-transparent surfaces that give the a nice visual 3D perception of "color clouds"


Disclaimer: I have no relation to any of the toolboxes presented here and I chose them by my own opinion. There are probably more, tools for this and if you think you want to add some, please edit the question freely.

这篇关于在 MATLAB 中绘制体积数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆