Back to Aurora Vision Library website
You are here: Start » Function Reference » Histogram » Histogram Features » HistogramMaximum
![](../../img/icon/HistogramAnalysis.png)
HistogramMaximum
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Computes histogram bar values maximum - its location and value.
Syntax
C++
C#
void avl::HistogramMaximum ( const avl::Histogram& inHistogram, atl::Optional<const avl::Range&> inRange, avl::HistogramInterpolationMethod::Type inInterpolationMethod, int& outMaximumLocation, float& outPoint, double& outMaximumValue )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
inRange | Optional<const Range&> | NIL | Search range |
![]() |
inInterpolationMethod | HistogramInterpolationMethod::Type | Histogram bins interpolation method | |
![]() |
outMaximumLocation | int& | Output maximum location | |
![]() |
outPoint | float& | Output subpixel maximum location | |
![]() |
outMaximumValue | double& | Output maximum value |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty histogram on input in HistogramMaximum. |
DomainError | Unsupported interpolation method in HistogramMaximum. |
See Also
- HistogramMinimum – Computes histogram bar values minimum - its location and value.
- HistogramAverage – Computes the average of histogram bin values.