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, atl::real& outMaximumPoint, atl::Optional<int&> outMaximumIndex = atl::NIL, atl::Optional<atl::real&> outMaximumValue = atl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inProfile | const Profile& | Input profile | |
![]() |
inInterpolationMethod | ProfileInterpolationMethod::Type | Quadratic4 | |
![]() |
outMaximumPoint | real& | ||
![]() |
outMaximumIndex | Optional<int&> | NIL | |
![]() |
outMaximumValue | Optional<real&> | NIL |
Errors
| Error type | Description |
|---|---|
| DomainError | Empty profile in ProfileMaximum. |


