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

    %% Translate Offset Structuring Element
% 
%%
% Create an offset structuring element.
SE = offsetstrel('ball', 5, 6.5)
SE.Offset
%%
% Translate the structuring element.
V = [2 2];
SE2 = translate(SE,V)
SE2.Offset