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

CreateUniformHistogram
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Creates a uniform histogram of desired parameters with common value of all bins.
Syntax
C++
C#
void fil::CreateUniformHistogram ( double inValue, float inDomainStart, float inBinSize, int inBinCount, fil::Histogram& outHistogram )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inValue | double | Common value for all bins of the constructed histogram | ||
![]() |
inDomainStart | float | 0.0f | First value of the domain represented by the histogram | |
![]() |
inBinSize | float | 0.0 - ![]() |
1.0f | Length of the domain section represented by each bin |
![]() |
inBinCount | int | 1 - +![]() |
1 | Length of the domain represented by the histogram |
![]() |
outHistogram | Histogram& | The resulting histogram |
Description
The operation creates a histogram composed from equally valued bins representing the given domain.
Examples

CreateUniformHistogram run with inValue = 10.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Non-positive bin width in CreateUniformHistogram. |
See Also
- ImageHistogram – Computes the histogram of the image pixel values.
- MakeHistogram – Creates a histogram out of an array of bin values.