typedef struct CvHistogram
{
int type; // 区分opencv中的结构体
CvArr* bins;
float thresh[CV_MAX_DIM][2]; /* For uniform histograms. */
float** thresh2; /* For non-uniform histograms. */
CvMatND mat; /* Embedded matrix header for array histograms. */
}
{
int type; // 区分opencv中的结构体
CvArr* bins;
float thresh[CV_MAX_DIM][2]; /* For uniform histograms. */
float** thresh2; /* For non-uniform histograms. */
CvMatND mat; /* Embedded matrix header for array histograms. */
}
CvHistogram;
说明 :1、CV_MAX_DIM,opencv定义的直方图的最大维数,设定为32。
2、二维数组thresh[CV_MAX_DIM][2]保存的是每个维的上下界,在cvCreateHist()函数中定义。
3、thresh2保存每个bin的上下界。
本文深入探讨了CvHistogram结构体在OpenCV中的使用,包括其关键成员如CV_MAX_DIM、thresh数组及thresh2的含义与作用,详细解释了如何在图像处理任务中利用此结构进行高效直方图操作。
1259

被折叠的 条评论
为什么被折叠?



