Hello, I am using cvCalcHist function. The defination is : void cvCalcHist( IplImage* image, CvHistogram hist,int accumulate=0, const CvArr* mask=NULL ); However, I don't know how to use the parameter mask, Can somebody give me an sample source code? Thanks very much. Best wishes to you.