Selecting specific connected components in 3D image stack and display them
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to select certain connected components from an image stack. I am a bit confused about the proper indexing method to do this. The relevant part of the code is the following:
CC = bwconncomp(Stack,26); % calculate the connected component in Stack, which is a 500 x 500 x 500 array
stats = regionprops3(CC,'VoxelIdxList','Volume','SurfaceArea','EquivDiameter'); %measure the properties of the connected components;
stats.Sphericity = ((6*stats.Volume).^(2/3))*((pi).^(1/3))./stats.SurfaceArea; % I'm calculating the sphericity here as I need it to differentiate the objects;
Idx = [stats.Sphericity] < 0.8; % I'd like to show in the image stack only the connected components with a sphericity lower than 0.8;
How do I set the voxels in Stack such that only the objects with sphericity lower than 0.8 are displayed? I've tried using the synthax used in other examples with 2D images, but it returns the following error: Requested array exceeds the maximum possible variable size.
Thanks! hope the question is clear.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!