February 2020
Intermediate to advanced
372 pages
9h 26m
English
The cv2.calcHist function has the following signature:
calcHist(images, channels, mask, histSize, ranges[, hist[, accumulate]]) -> hist
The following table contains descriptions of the parameters (adapted from the official OpenCV documentation):
|
Parameter |
Description |
|
images |
This parameter is a list of one or more source images. They should all have the same bit depth (8-bit, 16-bit, or 32-bit) and the same size. |
|
channels |
This parameter is a list of the indices of the channels used to compute the histogram. For example, channels=[0] means that only the first channel (that is, the channel with index 0) is used to compute the histogram. |
|
mask |
This parameter is a mask. If it ... |