Back to Adaptive Vision Library websiteYou 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,
float inBinSelectionValue,
int& outValue
)
void GetHistogramCorrespondingBin
(
Histogram inHistogram,
float inBinSelectionValue,
out int outValue
)
Parameters
|
Name |
Type |
Default |
Description |
|
inHistogram |
const Histogram& |
|
Input histogram |
|
inBinSelectionValue |
float |
|
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. |