Skip to content

Commit 1c70b5a

Browse files
committed
Shadow Fix
1 parent 237ca81 commit 1c70b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/tracking/src/tldDetector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ namespace cv
209209

210210
// Computes the variance of subimage given by box, with the help of two integral
211211
// images intImgP and intImgP2 (sum of squares), which should be also provided.
212-
bool TLDDetector::patchVariance(Mat_<double>& intImgP, Mat_<double>& intImgP2, double *originalVariancePtr, Point pt, Size size)
212+
bool TLDDetector::patchVariance(Mat_<double>& intImgP, Mat_<double>& intImgP2, double *originalVariance, Point pt, Size size)
213213
{
214214
int x = (pt.x), y = (pt.y), width = (size.width), height = (size.height);
215215
CV_Assert(0 <= x && (x + width) < intImgP.cols && (x + width) < intImgP2.cols);
@@ -229,7 +229,7 @@ namespace cv
229229
D = intImgP2(y + height, x + width);
230230
p2 = (A + D - B - C) / (width * height);
231231

232-
return ((p2 - p * p) > VARIANCE_THRESHOLD * *originalVariancePtr);
232+
return ((p2 - p * p) > VARIANCE_THRESHOLD * *originalVariance);
233233
}
234234

235235
}

0 commit comments

Comments
 (0)