Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


gives a binary image in which white pixels correspond to constant extended minima in image.

finds extended minima where the range of values is not greater than h.

applies minima detection to an array of data.

Details and OptionsDetails and Options

  • MinDetect[image] finds regional minima.
  • An extended minimum is a connected set of pixels with values less than their surroundings.
  • MinDetect[image,h] effectively fills minima of depth h or less and returns all remaining constant regional minima.
  • MinDetect[image] is equivalent to MinDetect[image,0].
  • MinDetect works with binary, grayscale, and other images.
  • MinDetect works with 3D as well as 2D images, and also with data arrays of any rank.
  • The following options can be given:
  • CornerNeighborsTruewhether to include corner neighbors
    PaddingAutomaticpadding method to use
  • By default, for images white padding is used, and for data arrays the maximum possible number is used so that the minima at the boundary is always detected regardless of the range of data values.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Local minima of a list:

Click for copyable input

Find catchment basins of depth 0.3 in a terrain map:

Click for copyable input

Find sharp dark regions in an image:

Click for copyable input
Introduced in 2010
| Updated in 2014