MATLAB 帮助中心
Return sequence of decomposed structuring elements
SEQ = decompose(SE)
SEQ = decompose(SE) returns an array of structuring elements, SEQ, that are the decomposition of the structuring element SE. SEQ is equivalent to SE, but the elements of SEQ cannot be decomposed further.
SEQ
SE
example
collapse all
Create a disk-shaped structuring element.
se = strel('square',5)
se = strel is a square shaped structuring element with properties: Neighborhood: [5×5 logical] Dimensionality: 2
Extract the decomposition of the structuring element.
seq = decompose(se)
seq = 2×1 strel array with properties: Neighborhood Dimensionality
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
imdilate(1,seq,'full')
ans = 5×5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Create a ball-shaped structuring element.
se = offsetstrel('ball',5, 6.5)
se = offsetstrel is a ball shaped offset structuring element with properties: Offset: [11×11 double] Dimensionality: 2
Obtain the decomposition of the structuring element.
seq = 1×8 offsetstrel array with properties: Offset Dimensionality
strel
offsetstrel
Structuring element, specified as a strel or offsetstrel object.
Sequence of structuring elements that approximate the desired shape, returned as an array of strel or offsetstrel objects.
Introduced before R2006a
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处