-   Programming (
-   -   about Histogram Function of OpenCV? (

caicaicherry 09-15-2005 06:34 AM

about Histogram Function of OpenCV?
I am a new commer to the OpenCV.

I want to compute the color histogram of only the skin region in an image.

When computing the color histogram of the total pixels,
"cvCalcHist(image, histogram, 0, 0)" can be used.

But when it just needs to consider the skin pixels, such as the histogram of hand-face region, how can I set the parameter of cvCalcHistogram,
especially " const CvArr* mask=0".

cvCalcHist(IplImage** img, CvHistogram* hist,
int doNotClear=0, const CvArr* mask=0)"

I do not know much about the construct of the "mask".

Thanks for your advice!

All times are GMT -5. The time now is 12:27 AM.