How can I extract each connected object in a 3D array?
3 views (last 30 days)
Show older comments
May on 1 Mar 2017
Commented: Image Analyst on 2 Mar 2017
I have a 3D array (attached as Y.mat) and I find the connected components using bwconncomp. I used the following coding to extract each component but X is a zero array with the same size as Y. Please, help me to solve this problem.
CC = bwconncomp(Y, 26); % Y is the 3D array
L = labelmatrix(CC);
X = (L==i);
imshow3D(a); % use existing function to show 3D
Image Analyst on 1 Mar 2017
oneBlobOnly = ismember(L, i);
More Answers (0)
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!