Detects local minima
#include "dip_filtering.h"
dip_Error dip_Minima ( in, out, se, boundary, filterParam, shape )
binary, integer, float
This function determines whether the pixel under investigation has the minimum value in a local neighbourhood, which is determined by filterParam and shape. This is implemented with the following operation:
out = Threshold[ Erosion[ in ] - in, 0 ]
The se, boundary, filterParam and shape parameters are passed to Erosion. This function will output a binary image with the local minima 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 |
LocalMinima, Maxima, Threshold, Erosion
DIPlib on-line documentation | Function reference | Global function index