| Image Processing Toolbox | ![]() |
Extract sequence of decomposed structuring elements
Syntax
Description
SEQ = getsequence(SE), where SE is a structuring element array, returns another structuring element array SEQ containing the individual structuring elements that form the decomposition of SE. SEQ is equivalent to SE, but the elements of SEQ have no decomposition.
Class Support
SE and SEQ are arrays of STREL objects.
Example
The strel function uses decomposition for square structuring elements larger than 3-by-3. Use getsequence to extract the decomposed structuring elements.
se = strel('square',5) seq = getsequence(se) se = Flat STREL object containing 25 neighbors. Decomposition: 2 STREL objects containing a total of 10 neighbors Neighborhood: 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 seq = 2x1 array of STREL objects
Use imdilate with the 'full' option to see that dilating sequentially with the decomposed structuring elements really does form a 5-by-5 square:
See Also
| getnhood | gray2ind | ![]() |