分离RGB通道
之后对各通道均衡化处理
再合并到一起
public Mat equalizeRGBHist(Mat mat){ //传入Mat类返回Mat类
int height=mat.rows();
int width=mat.cols();
int channels=mat.channels();
byte[] values= new byte[height*width*channels];
byte[] values_RGB= new byte[height*width];
mat.get(0,0,values);
Mat desMat = new Mat(height, width, CV_8UC4);
Mat rgbMat = new Mat(height, width, CV_8UC1); //这里没有初始化各通道是因为手机内存不够
for(int i=0; i


