DIPlib Documentation - ©1995-2014 Quantitative Imaging Group, Delft University of Technology.

LocalMinima

Marks local minima (or regional minima)

SYNOPSIS

#include "dip_morphology.h"

dip_Error dip_LocalMinima ( in, mask, out, connectivity, max_depth, max_size, binaryOutput )

DATA TYPES

integer, float

FUNCTION

The binary output image is true on all pixels belonging to the minima of a region (as defined by the watershed). To find local maxima, use the inverse of the image as input to this function (see Invert). If binaryOutput is DIP_FALSE, the output is a labelled image instead of a binary one. In this case, pixels belonging to the same local minimum are assigned the same value.

The algorithm is based on the watershed transform, see Watershed for information on the parameters.

Minima is a different algorithm to obtain local minima; Maxima yields the local maxima.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImagemaskMask
dip_ImageoutOutput (binary)
dip_intconnectivityConnectivity
dip_floatmax_depthMaximum depth of a region that can be merged
dip_intmax_sizeMaximum size of a region that can be merged
dip_BooleanbinaryOutputDIP_FALSE if the output should be a labelled image

SEE ALSO

Watershed, SeededWatershed, UpperEnvelope, Minima, Maxima