Back to FabImage Library website
You are here: Start » Function Reference » Histogram » Histogram Features » HistogramMaximum
HistogramMaximum
| Header: | FIL.h |
|---|---|
| Namespace: | fil |
| Module: | FoundationBasic |
Computes histogram bar values maximum - its location and value.
Syntax
C++
C#
void fil::HistogramMaximum ( const fil::Histogram& inHistogram, ftl::Optional<const fil::Range&> inRange, fil::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.


