mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Fix the OpenCL portion to match the c++ code.
Fix an undiscovered bug in the c++ code.
This commit is contained in:
@@ -215,7 +215,7 @@ namespace
|
||||
if (residual != 0)
|
||||
{
|
||||
int residualStep = MAX(histSize / residual, 1);
|
||||
for (int i = 0; i < histSize; i += residualStep)
|
||||
for (int i = 0; i < histSize && residual > 0; i += residualStep, residual--)
|
||||
tileHist[i]++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user