0);
//设置所有的直方图的数值为255
cvSet(hist_img,cvScalarAll(255),0);
// 平均每个直放柱的宽度
int bin_w=cvRound((double...//显示直方图
cvShowImage(pstrWndName,hist_img);
cvWaitKey(1);
}
void historgram_channel(const char* image_name...*/
cvCalcHist( planes, hist, 0, 0 );
/** 获取直方图统计的最大值,用于动态显示直方图 */
float max_value;
cvGetMinMaxHistValue...( hist, 0, &max_value, 0, 0 );
/** 设置直方图显示图像 */
int height = 240;
int width = (h_bins*s_bins*6...,计算显示在图像中的高度 */
float bin_val = cvQueryHistValue_2D( hist, h, s );
int intensity = cvRound(bin_val