www.gusucode.com > images 案例代码 matlab源码程序 > images/ErodeMRIStackVolumeUsingCubicStructuringElementExample.m

    %% Erode MRI Stack Volume Using Cubic Structuring Element
% 
%%
% Create a binary volume.
load mristack
BW = mristack < 100;
%%
% Create a cubic structuring element.
se = strel('cube',3)
%%
% Erode the volume with a cubic structuring element. 
erodedBW = imerode(BW, se);