Commit 09b08c5e authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1304 from berak:fix_tracking_1057

parents 067b0a63 006dcae8
......@@ -223,8 +223,8 @@ namespace cv{
// create gaussian response
y=Mat::zeros((int)roi.height,(int)roi.width,CV_64F);
for(unsigned i=0;i<roi.height;i++){
for(unsigned j=0;j<roi.width;j++){
for(unsigned i=0;i<(unsigned)roi.height;i++){
for(unsigned j=0;j<(unsigned)roi.width;j++){
y.at<double>(i,j)=(i-roi.height/2+1)*(i-roi.height/2+1)+(j-roi.width/2+1)*(j-roi.width/2+1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment