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

    %% Determine Domain of Composition of Structuring Elements
%  
%%
% Create two flat, line-shaped structuring elements, one at 0 degrees and
% the other at 90 degrees.
se1 = strel('line',3,0)
se2 = strel('line',3,90)
%%
% Dilate the scalar value 1 with both structuring elements in sequence,
% using the |'full'| option.
composition = imdilate(1,[se1 se2],'full')