我怎么能想象量数据如下图所示,在MATLAB?所示、如下图、数据、我怎么能

2023-09-08 00:59:54 作者:依旧记得你的温柔ヽ

我的问题很简单:我有一大堆的基质中,所有的堆叠对方,让我有数据的量。我要显示此数据,如下面这个例子图所示:

My question very simply: I have a bunch of matricies, all stacked up on each other, so that I have a volume of data. I want to visualize this data, as this example image shows below:

有我认为需要某种程度的透明性,或许链接到每个体素的值。也就是说,该值越高,越透明的体素是将它后面的东西。我不知道如何甚至开始与此有关。

It seems to me that some degree of transparency is needed, perhaps linked to the value of each voxel. That is, the higher the value, the less 'transparent' the voxel is to things behind it. I am not sure how to even start with this.

下面是一些简单的code,使我的数据量,所以我现在所想的尝试和想象吧。

Here is some simple code that makes my data volume, so all I would like now is to try and visualize it.

clear all

%Make the random volume
mat = rand(50,50,100);

%Place high values in particular parts of the volume
sigCoors.rows = [23:33];
sigCoors.columns = [40:45];
sigCoors.time = [55:85];
mat(sigCoors.rows, sigCoors.columns, sigCoors.time) = 10.*rand(length(sigCoors.rows),   length(sigCoors.columns), length(sigCoors.time));

%Visualize the volume:
% ?

这基本上是它。我怎么可能去可视化这一数据同上,或者类似的东西?谢谢你。

That is basically it. How may I go about visualizing this data as above, or perhaps something similar? Thank you.

推荐答案

我强烈建议浏览 MATLAB FileExchange 。他们有许多用户提供的3D体积可视化工具。

I strongly recommend to browse the MATLAB FileExchange. They have many user-contributed 3D volume visualization tools.

我个人使用的批量渲染前一段时间(注意已知的bug:修改与功能色彩表占用大量的内存)。同一作者较新的版本似乎更复杂(我没有用它尚未)。 Sliceomatic 可能还感兴趣的你。

Personally I used the Volume Render some time ago (beware of known bug: changes with function colormap consume large amount of memory). Newer version from the same author seems more sophisticated (I did not use it yet). Sliceomatic may be also interesting for you.

只是一个方面说明。我还做了我的第一个三维可视化的MATLAB。但相当很快我意识到,MATLAB是不是在三维体可视化大而复杂的数据集足够强大。 虽然我还是处理我的数据在MATLAB但是对于3D体积可视化我使用 Voreen (你需要一个良好的GPU卡它运行,检查其系统要求)。

Just a side note. I also did my first 3D visualization in MATLAB. But quite soon I realized that MATLAB is not strong enough in 3D volume visualization for big and complex data sets. Although I still process my data in MATLAB but for 3D volume visualization I use Voreen (you'll need a good GPU card for it to run, check its System Requirements).