Compute regional maxima.
Returns a logical matrix, same size as the input img, with the regional maxima.
The optional argument conn, defines the connectivity. It can
be a scalar value or a boolean matrix (see conndef
for details).
Defaults to conndef (ndims (img), "maximal")
Regional maxima should not be mistaken with local maxima. Local maxima are pixels whose value is greater or equal to all of its neighbors. A regional maxima is the connected component of pixels whose values are all higher than the neighborhood of the maxima (the connected component, not its individual pixels). All pixels belonging to a regional maximum are local maxima, but the inverse is not true.
See also: immaximas, imreconstruct, imregionalmin.
Package: image