Back to Adaptive Vision Library website

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

SetHistogramCorrespondingBin


Header:AVL.h
Namespace:avl

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

Syntax

C++
C#
 
void avl::SetHistogramCorrespondingBin
(
	avl::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.