Back to Adaptive Vision Library website
You are here: Start » Function Reference » Histogram Basics » GetHistogramCorrespondingBin
GetHistogramCorrespondingBin
Selects a bin that the given value in the histogram domain falls into and returns the value of this bin.
Syntax
C++
C#
void avl::GetHistogramCorrespondingBin ( const avl::Histogram& inHistogram, atl::real inBinSelectionValue, int& outValue )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
inBinSelectionValue | real | Input value in the histogram domain that will be used to select the bin | |
![]() |
outValue | int& | Output value of the bin |
Errors
| Error type | Description |
|---|---|
| DomainError | inBinSelectionValue exceeds the histogram domain in GetHistogramCorrespondingBin. |


