Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Histogram Basics » CreateHistogram

CreateHistogram


Creates the histogram of the array of real numbers.

Name Type Range Description
inArray RealArray Array from which histogram will be generated
inWeights IntegerArray* Weights corresponding to the elements of 'inArray'
inBinSize Real 0.0001 - Input bin size
inDomainStart Real* Input domain begin
inDomainLength Real* 0.0001 - Input domain length
outHistogram Histogram Output histogram

Description

The operation creates a histogram of inArray values.

Examples

Description of usage of this filter can be found in examples and tutorial: Washers, Classify the Mounts.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Inconsistent array lengths at inArray and inWeights in CreateHistogram.
DomainError Input bin width is incorrect in CreateHistogram.
DomainError Input boundaries are incorrect in CreateHistogram.
DomainError Negative weight encountered in CreateHistogram.
DomainError Output histogram size too large in CreateHistogram.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • ImageHistogram – Computes the histogram of the image pixel values.