www.gusucode.com > images 案例代码 matlab源码程序 > images/DilatePointsIn3DSpaceUsingSphericalStructuringElementsExample.m
%% Dilate Points in 3D Space Using Spherical Structuring Elements % %% % Create a logical 3D volume with two points. BW = false(100,100,100); BW(25,25,25) = true; BW(75,75,75) = true; %% % Dilate the 3D volume using a spherical structuring element. se = strel('sphere',25); dilatedBW = imdilate(BW,se); %% % Visualize the dilated image volume. figure isosurface(dilatedBW)