BUILT-IN MATHEMATICA SYMBOL

MaxDetect

MaxDetect[image]
gives a binary image in which white pixels correspond to constant extended maxima in image.

MaxDetect[image, h]
finds extended maxima where the range of values is not greater than h.

MaxDetect[data, ...]
applies maxima detection to an array of data.

Details and OptionsDetails and Options

• MaxDetect[image] finds regional maxima.
• An extended maximum is a connected set of pixels with values greater than their surroundings.
• MaxDetect[image, h] effectively chops maxima of height h or less and returns all remaining constant regional maxima.
• MaxDetect[image] is equivalent to MaxDetect[image, 0].
• MaxDetect by default treats all pixels surrounding a given pixel as adjacent. A given pixel has eight adjacent pixels in 2D and 26 adjacent pixels in 3D.
• The option setting treats only the pixels in the coordinate directions as adjacent, which would include four pixels in 2D and six pixels in 3D.
• MaxDetect works with binary, grayscale, and other images.
• MaxDetect works with 3D as well as 2D images, and also with data arrays of any rank.
• MaxDetect takes a Padding option. The default setting is Padding->0, corresponding to a black background.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Find areas in an elevation map that rise above their surroundings by at least 0.2:

 Out[1]=

Find the stars and stripes in a flag:

 Out[1]=