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

    %% View Decomposition of Structuring Element
% 
%%
% Create a disk-shaped structuring element.
se = strel('square',5)
%%
% Extract the decomposition of the structuring element.
seq = decompose(se)
%%
% To see that dilating sequentially with the decomposed structuring
% elements really does form a 5-by-5 square, use |imdilate| with the full
% option.
imdilate(1,seq,'full')