Back to Adaptive Vision Library website

You are here: Start » Function Reference » Histogram » Histogram Features » HistogramLocalExtrema

HistogramLocalExtrema


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Computes the histogram local extrema.

Syntax

C++
C#
 
void avl::HistogramLocalExtrema
(
	const avl::Histogram& inHistogram,
	atl::Optional<const avl::Range&> inRange,
	atl::Optional<double> inMinValue,
	atl::Optional<double> inMaxValue,
	const bool inCyclic,
	const bool inConsiderPlateaus,
	avl::ExtremumType::Type inExtremumType,
	avl::HistogramInterpolationMethod::Type inInterpolationMethod,
	atl::Optional<const avl::LocalBlindness&> inLocalBlindness,
	atl::Array<avl::HistogramExtremum>& outLocalExtrema
)

Parameters

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