Skip to content

Commit 5cfdefb

Browse files
committed
Merge pull request #2284 from tolysz:patch-2
2 parents a56d282 + ac627d2 commit 5cfdefb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cudalegacy/src/cuda/NCVHaarObjectDetection.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ NCVStatus ncvGrowDetectionsVector_device(NCVVector<Ncv32u> &pixelMask,
14141414

14151415
ncvAssertReturn(totalMaxDetections <= hypotheses.length() &&
14161416
numPixelMaskDetections <= pixelMask.length() &&
1417-
totalMaxDetections <= totalMaxDetections, NCV_INCONSISTENT_INPUT);
1417+
totalDetections <= totalMaxDetections, NCV_INCONSISTENT_INPUT);
14181418

14191419
NCVStatus ncvStat = NCV_SUCCESS;
14201420
Ncv32u numDetsToCopy = numPixelMaskDetections;
@@ -1994,7 +1994,7 @@ NCVStatus ncvGrowDetectionsVector_host(NCVVector<Ncv32u> &pixelMask,
19941994
ncvAssertReturn(curScale > 0, NCV_INVALID_SCALE);
19951995
ncvAssertReturn(totalMaxDetections <= hypotheses.length() &&
19961996
numPixelMaskDetections <= pixelMask.length() &&
1997-
totalMaxDetections <= totalMaxDetections, NCV_INCONSISTENT_INPUT);
1997+
totalDetections <= totalMaxDetections, NCV_INCONSISTENT_INPUT);
19981998

19991999
NCVStatus ncvStat = NCV_SUCCESS;
20002000
Ncv32u numDetsToCopy = numPixelMaskDetections;

0 commit comments

Comments
 (0)