Thanks Abel! Probably I don't need these functions because I solved in this way
% Calculation of volume
CC = bwconncomp(F);
N = CC.NumObjects;
S = regionprops(CC, 'Area');
allVolume = [S.Area];
where F is the 3D binary matrix.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!