Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what is the role of mask of calcHist argument

I have a doubt regarding the calcHist function:

From here I read:

"Optional mask. If the matrix is not empty, it must be an 8-bit array of the same size as images[i] . The non-zero mask elements mark the array elements counted in the histogram."

Is not clear to me how can be used the mask.

what is the role of mask of passed to calcHist argumentargument ?

I have a doubt regarding the calcHist function:

From here I read:

"Optional mask. If the matrix is not empty, it must be an 8-bit array of the same size as images[i] . The non-zero mask elements mark the array elements counted in the histogram."

Is not clear to me how can be used the mask.