|Image Processing Toolbox User's Guide|
I2 = imhmax(I,h) suppresses all maxima in the intensity image
I whose height is less than
h is a scalar.
Regional maxima are connected components of pixels with a constant intensity value, and whose external boundary pixels all have a lower value
imhmax uses 8-connected neighborhoods for 2-D images, and 26-connected neighborhoods for 3-D images. For higher dimensions,
I2 = imhmax(I,h,CONN) computes the H-maxima transform, where
CONN specifies the connectivity.
CONN can have any of the following scalar values.
Connectivity can be defined in a more general way for any dimension by using for
CONN a 3-by-3-by- ...-by-3 matrix of
1-valued elements define neighborhood locations relative to the center element of
CONN. Note that
CONN must be symmetric about its center element.
I can be of any nonsparse numeric class and any dimension.
I2 has the same size and class as
a = zeros(10,10); a(2:4,2:4) = 3; % maxima 3 higher than surround a(6:8,6:8) = 8; % maxima 8 higher than surround b = imhmax(a,4); % only the maxima higher than 4 survive.
 Soille, P., Morphological Image Analysis: Principles and Applications, Springer-Verlag, 1999, pp. 170-171.
© 1994-2005 The MathWorks, Inc.