what is the role of mask passed to 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.