DIPlib Documentation - ©1995-2005 Pattern Recognition Group, Delft University of Technology.

Maxima

Detects local maxima

SYNOPSIS

#include "dip_filtering.h"

dip_Error dip_Maxima ( in, out, se, boundary, filterParam, shape )

DATA TYPES

binary, integer, float

FUNCTION

This function determines whether the pixel under investigation has the maximum value in a local neighbourhood, which is determined by filterParam and shape. This is implemented with the following operation:

   out = Threshold[ in - Dilation[ in ], 0 ]

The se, boundary, filterParam and shape parameters are passed to Dilation. This function will output a binary image with the local maxima pixels having the value DIP_TRUE.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageoutBinary output image
dip_ImageseStructuring element
dip_BoundaryArrayboundaryBoundary conditions
dip_FloatArrayfilterParamFilter parameters
dip_FilterShapeshapeFilter shape

SEE ALSO

Minima, LocalMinima, Threshold, Dilation

DIPlib on-line documentation | Function reference | Global function index