予的体积(三维基质)已经经历一个分割过程。大部分的体积由NaN的(或零),除了已通过一些标准(见图片)地区。我需要知道每个剩余段在体素的数量有多大,以及如何是他们在2D平面分布(XY,XZ,YZ)。有什么在MATLAB,可以帮助我以有效的方式,而不是直接搜索做到这一点?体积可以相当大。对于前。在附加的图片中有7个体素微黄/褐色一个段和垂直方向比的xy延伸更多。 先谢谢了。
I have a volume (3D matrix) that has undergone a segmentation process. Most of the volume consist of NaNs (or zeros), except regions that have passed some criteria (see picture). I need to know how large each remaining segment is in number of voxels and how is their distribution on the 2D planes (xy, xz, yz). Is there anything in matlab that can help me do this in an efficient way rather than direct search? The volume can be rather large. For ex. in the attached picture there is one segment in yellowish/brownish colour of 7 voxels and extends more vertically than in xy. Thanks in advance.
推荐答案最方便的解决方法是使用的 REGIONPROPS 。在您的例子:
The most convenient solution is to use REGIONPROPS. In your example:
stats = regionprops(image, 'area', 'centroid')有关的每个特征,存在在结构统计与该区域(即#体素)和形心的一个条目。
For every feature, there is an entry in the structure stats with the area (i.e. # of voxels) and the centroid.
更多推荐
在MATLAB中,发现3D社区
发布评论