Back to FabImage Studio website

You are here: Start » Filter Reference » OpenCV » Histogram » cvCalcHist

cvCalcHist


Module: OpenCV

Calculates array histogram.

Name Type Range Description
Input value inImage Image Input image
Input value inRoi Region* Range of pixels to be processed
Input value inChannelIndex Integer 0 - 3 Selects a channel of the input image
Input value inDomainBegin Real The lowest value that will be considered in the output histogram
Input value inBinSize Real 0.001 - Width of a single histogram bin
Input value inBinCount Integer 1 - + The upper-bound for values that will be considered in the output histogram
Output value outHistogram Histogram Output histogram

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 For mono images only first channel is available in cvCalcHist.
DomainError Only UInt8, UInt16 and Real pixel type is available in cvCalcHist.

Complexity Level

This filter is available on Basic Complexity Level.