Main Content

getsequence

Sequence of decomposed structuring elements

getsequence will be removed in a future release. See strel for the current list of methods.

Description

SEQ = getsequence(SE) returns the array of structuring elements SEQ, containing the individual structuring elements that form the decomposition of SE.

example

Examples

collapse all

Create a 5-by-5 structuring element.

se = strel("square",5)
se = 

strel is a square shaped structuring element with properties:

      Neighborhood: [5×5 logical]
    Dimensionality: 2

The strel function uses decomposition for square structuring elements larger than 3-by-3. Use getsequence to extract the decomposed structuring elements.

seq = getsequence(se)
seq = 

  2×1 strel array with properties:

    Neighborhood
    Dimensionality

Use imdilate with the "full" option to confirm that dilating sequentially with the decomposed structuring elements forms a 5-by-5 square:

imdilate(1,seq,"full")
ans =

     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

Input Arguments

collapse all

Structuring elements, specified as an array of strel objects.

Output Arguments

collapse all

Decomposed structuring elements, returned as an array of strel objects. The elements of SEQ have no further decomposition.

Version History

Introduced before R2006a