OpenCV中CvHistogram有关问题!
OpenCV中CvHistogram问题!!!C/C++ code//image为8位灰度图int total0for(int i0i256i++){total +(
OpenCV中CvHistogram问题!!!
C/C++ code//image为8位灰度图;int total=0;for(int i=0;i<256;i++) { total +=(int)cvQueryHistValue_1D(Histogram1,i);//查询直方块的值; }
请问:
1、CvHistogram数据结构中存储的数据是每个灰度级的像素点数还是其概率?
2、如果是每个灰度级的像素点数,为什么最后的total不等于图像的width*height ?
[解决办法]查opencv开发文档去啊,