Main Content

getheight

Height of structuring element

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

Description

h = getheight(SE) returns the height of all neighbors of structuring element SE.

example

Examples

collapse all

se = strel(ones(3,3),magic(3));
getheight(se)
ans =

     8     1     6
     3     5     7
     4     9     2

Input Arguments

collapse all

Structuring element, specified as a strel object.

Output Arguments

collapse all

Height of the structuring element SE, returned as a numeric matrix of the same size as getnhood(SE). For a flat structuring element, h is all zeros.

Data Types: double

Version History

Introduced before R2006a