Back to FabImage Library website
You are here: Start » Function Reference » Histogram Basics » GetHistogramCorrespondingBin

GetHistogramCorrespondingBin
Header: | FIL.h |
---|---|
Namespace: | fil |
Selects a bin that the given value in the histogram domain falls into and returns the value of this bin.
Syntax
C++
C#
void fil::GetHistogramCorrespondingBin ( const fil::Histogram& inHistogram, float inBinSelectionValue, 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
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inBinSelectionValue exceeds the histogram domain in GetHistogramCorrespondingBin. |