Back to FabImage Library website

You are here: Start » Function Reference » Histogram Basics » SetHistogramCorrespondingBin

SetHistogramCorrespondingBin


Header:FIL.h
Namespace:fil

Selects a bin that the given value in the histogram domain falls into and sets the value of this bin.

Syntax

C++
C#
 
void fil::SetHistogramCorrespondingBin
(
	fil::Histogram& ioHistogram,
	float inBinSelectionValue,
	int inNewValue
)

Parameters

Name Type Default Description
ioHistogram Histogram&
inBinSelectionValue float Input value in the histogram domain that will be used to select the bin
inNewValue int Input new value to be set

Errors

List of possible exceptions:

Error type Description
DomainError inBinSelectionValue exceeds the histogram domain in SetHistogramCorrespondingBin.