Back to Adaptive Vision Library website
You are here: Start » Function Reference » Profile Features » ProfileMaximum
ProfileMaximum
Finds the highest value of the input profile, its precise location and the corresponding index.
Syntax
C++
C#
void avl::ProfileMaximum ( const avl::Profile& inProfile, avl::ProfileInterpolationMethod::Type inInterpolationMethod, float& outMaximumPoint, atl::Optional<int&> outMaximumIndex = atl::NIL, atl::Optional<float&> outMaximumValue = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inProfile | const Profile& | Input profile | ||
inInterpolationMethod | ProfileInterpolationMethod::Type | Quadratic4 | ||
outMaximumPoint | float& | |||
outMaximumIndex | Optional<int&> | NIL | ||
outMaximumValue | Optional<float&> | NIL |
Errors
Error type | Description |
---|---|
DomainError | Empty profile in ProfileMaximum. |