function mm3d % MM3D 3D processing. % % MM3D % % Most functions in the SDC Morphology Toolbox operate in 3D. The % image must be a binary or gray-scale image with a third dimension. % A typical example is a CT or MRI image of many slices (2D) % stacked together in the third dimension. To create a 3D % structuring element, use MMSEDISK or MMIMG2SE. There are a few % functions that do not work in 3D yet, for instance, MMWATERSHED % only works for 2D whereas MMCWATERSHED and MMSWATERSHED work in % 3D. % % Examples % -------- % % % CREATING 6-NEIGHBORS 3D STRUCTURING ELEMENT % b6=mmsedisk(1,'3D','city-block'); % mmseshow(b6) % % % % % CREATING 26-NEIGHBORS 3D STRUCTURING ELEMENT % b26=mmsedisk(1,'3D','chessboard'); % mmseshow(b26) % % % % % CREATING 18-NEIGHBORS 3D STRUCTURING ELEMENT % b18=mmsedisk(1,'3D','EUCLIDEAN'); % mmseshow(b18) % % % % % 3D EUCLIDEAN DISTANCE TRANSFORM % f=logical(uint8(ones(50,50,50))); % f(25,25,25)=0; % d6=mmdist(f,b26,'EUCLIDEAN'); % clf; % p = patch(isosurface(d6, 20), ... % 'FaceColor', 'red',... % 'EdgeColor', 'none'); % view(3); % daspect([1,1,1]); % camlight; % grid on; % showfig(isosurface(d6,20)); % % % See also MMIMG2SE, MMSEDISK. % begin of the default argument automatic treatment% end of the default argument automatic treatment 1 help mm3d % Copyright (c) 1998-2001 by SDC Information Systems.