Back to Adaptive Vision Library website
You are here: Start » Function Reference » Profile Features » ProfileLocalExtrema
ProfileLocalExtrema
Finds the locations at which the values of the input profile are locally highest or lowest.
Syntax
C++
C#
void avl::ProfileLocalExtrema ( const avl::Profile& inProfile, const bool inCyclic, const avl::ExtremumType::Type inExtremumType, avl::ProfileInterpolationMethod::Type inInterpolationMethod, const bool inConsiderPlateaus, atl::Optional<float> inMinValue, atl::Optional<float> inMaxValue, atl::Array<avl::Extremum1D>& outLocalExtrema )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inProfile | const Profile& | Input profile | |
![]() |
inCyclic | const bool | Indicates whether the last element should be considered a neighbour of the first element | |
![]() |
inExtremumType | const ExtremumType::Type | Type of extremum to find | |
![]() |
inInterpolationMethod | ProfileInterpolationMethod::Type | Quadratic4 | When interpolation is set to Quadratic each non-plateau extremum is located using a parabola fit |
![]() |
inConsiderPlateaus | const bool | True | Indicates whether the result should include centers of plateau extrema |
![]() |
inMinValue | Optional<float> | NIL | Minimum value of an extremum |
![]() |
inMaxValue | Optional<float> | NIL | Maximum value of an extremum |
![]() |
outLocalExtrema | Array<Extremum1D>& | Extrema of the profile values |


