对于一个区域,怎么进一步针对区域内部特征进行处理呢 ? 首先,我们要提取出来内部的某些特征才能说话,下面提取一些简单的特征,话不多说见代码:
1.平均数及方差参数:
1 Mat tempMean, tempStddv; 2 double MEAN, STDDV;// mean and standard deviation of the flame region 3 double m = mean(flameRectRegion)[0]; 4 //cout << "mean=" << m << endl; 5 meanStdDev(flameRectRegion, tempMean, tempStddv); 6 7 MEAN = tempMean.at<double>(0, 0); 8 STDDV = tempStddv.at<double>(0, 0); 9 //cout << "mean=" << MEAN << endl; 10 //cout << "stddv=" << STDDV << endl;
原文:http://www.cnblogs.com/ggYYa/p/6189558.html