Back to FabImage Library website
You are here: Start » Function Reference » Histogram » Histogram Features » HistogramLocalExtrema

HistogramLocalExtrema
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Computes the histogram local extrema.
Syntax
C++
C#
void fil::HistogramLocalExtrema ( const fil::Histogram& inHistogram, ftl::Optional<const fil::Range&> inRange, ftl::Optional<double> inMinValue, ftl::Optional<double> inMaxValue, const bool inCyclic, const bool inConsiderPlateaus, fil::ExtremumType::Type inExtremumType, fil::HistogramInterpolationMethod::Type inInterpolationMethod, ftl::Optional<const fil::LocalBlindness&> inLocalBlindness, ftl::Array<fil::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 |