Detects local maxima
#include "dip_filtering.h"
dip_Error dip_Maxima ( in, out, se, boundary, filterParam, shape )
binary, integer, float
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.
Data type | Name | Description |
dip_Image | in | Input image |
dip_Image | out | Binary output image |
dip_Image | se | Structuring element |
dip_BoundaryArray | boundary | Boundary conditions |
dip_FloatArray | filterParam | Filter parameters |
dip_FilterShape | shape | Filter shape |
Minima, LocalMinima, Threshold, Dilation
DIPlib on-line documentation | Function reference | Global function index