Caculate the (morphological) extended maxima of an image im.
This function returns a binary image that marks the extended maxima of the input image im. Those extended maxima are definded as the regional maxima of the h-maximum transform of the input image (which removed all regional maxima of a height less then h beforehand).
The input image im needs to be a real and nonsparse numeric array (of any dimension), and the height parameter h a non-negative scalar number.
The definition of "neighborhood" for this morphological operation can be set
with the connectivity parameter conn,
which defaults to 8 for 2D images, to 26 for 3D images and to
conn(ndims(n), "maximal")
in general. conn can be given as scalar value
or as a boolean matrix (see conndef
for details).
The output is a binary image of same shape as the input image im.
See also: imextendedmin, imhmax, imregionalmax, imreconstruct.
Package: image