帮看个函数,老是提醒错误,拜托拜托
void CompressiveTracker::getMapValue( Mat& imageIntegral, vector<Rect>& _rect, Mat& _rectMapValue, Mat& _rectFeatureValue ){
int m = 8;
int rectSize = _rect.size();
_rectMapValue.create( rectSize, m, CV_32F);
getFeatureValue(imageIntegral, _rect, _rectFeatureValue);
int L = 256;
int g, qSum, n;
float b, q;
for(int u=0; u<m; u++)
{
n = 0;
qSum = 0;
for( int j=0; j<rectSize; j++ )
{
for( int i=0; i<featureNum; i++ )
{
n += _rectFeatureValue.at<float>(i, j);
}
for( int k=0; k<featureNum; k++ )
{
g = _rectFeatureValue.at<float>(k, j);
b = floor( g*(m/L) );
qSum += b == (u+1) ? 0 : 1;
}
q = qSum / n;
_rectMapValue.at<float>(j, u) = q; //此处提示没有存储类或类型说明符
} //此处提醒应输入声明
}
} 只是路过,看看,互相学习 撸主 这种写法,还真是没见过啊~~~ .at<float>这是调用啥?还是啥意思? 不用看了,是调用的opencv里的函数,原因是opencv没配置好
页:
[1]