Skip to content

Commit 006dcae

Browse files
committed
tracking: fix rounding error in trackerKCF
1 parent ffdec47 commit 006dcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/tracking/src/trackerKCF.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ namespace cv{
223223

224224
// create gaussian response
225225
y=Mat::zeros((int)roi.height,(int)roi.width,CV_64F);
226-
for(unsigned i=0;i<roi.height;i++){
227-
for(unsigned j=0;j<roi.width;j++){
226+
for(unsigned i=0;i<(unsigned)roi.height;i++){
227+
for(unsigned j=0;j<(unsigned)roi.width;j++){
228228
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);
229229
}
230230
}

0 commit comments

Comments
 (0)