getheight - Height of structuring element

Syntax

H = getheight(SE)

Description

H = getheight(SE) returns an array the same size as getnhood(SE) containing the height associated with each of the structuring element neighbors. H is all zeros for a flat structuring element.

Class Support

SE is a STREL object. H is of class double.

Examples

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

See Also

strel, getnhood

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS