//直方图基于颜色的内容检索
//相似图片检索(二)
#include <iostream>
#include<io.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
class ColorHistogram{
private :
int histSize[3]; //每个维度的大小
float hranges[2]; //值的范围
const float* ranges[3]; //每个维度的范围
int channels[3]; //需要处理的通道
public :
ColorHistogram(){
//默认参数
//每个维度的大小和范围是相等的
histSize[0] = histSize[1] = histSize[2] =
256;