HistogramLocalExtrema


Computes the histogram local extrema.

Syntax

C++
C#
Python
 
def HistogramLocalExtrema(
	inHistogram: Histogram,
	inConsiderPlateaus: bool,
	/,
	*,
	inRange: Range | None = None,
	inMinValue: float | None = None,
	inMaxValue: float | None = None,
	inCyclic: bool = False,
	inExtremumType: ExtremumType = ExtremumType.Maximum,
	inInterpolationMethod: HistogramInterpolationMethod = HistogramInterpolationMethod.Linear,
	inLocalBlindness: LocalBlindness | None = None
)
-> outLocalExtrema: list[HistogramExtremum]

Parameters

Name Type Default Description
Input value inHistogram Histogram Input histogram
Input value inRange Range | None None Search range
Input value inMinValue float | None None Minimum value of an extremum
Input value inMaxValue float | None None Maximum value of an extremum
Input value inCyclic bool False Whether to check differences between the first and last elements
Input value inConsiderPlateaus bool Indicates whether the result should include centers of plateau extrema
Input value inExtremumType ExtremumType ExtremumType.Maximum Type of extremum to find
Input value inInterpolationMethod HistogramInterpolationMethod HistogramInterpolationMethod.Linear Histogram bins interpolation method
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker extrema can be detected in the vicinity of stronger ones
Output value outLocalExtrema list[HistogramExtremum] Output histogram extrema