Start » Filter Reference » OpenCV » Histogram » cvCalcHist
Module: | OpenCV |
---|
Calculates array histogram.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region* | Range of pixels to be processed | |
![]() |
inChannelIndex | Integer | 0 - 3 | Selects a channel of the input image |
![]() |
inDomainBegin | Real | The lowest value that will be considered in the output histogram | |
![]() |
inBinSize | Real | 0.001 - ![]() |
Width of a single histogram bin |
![]() |
inBinCount | Integer | 1 - +![]() |
The upper-bound for values that will be considered in the output histogram |
![]() |
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.