mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Fix for opencv face detector ocl test
Signed-off-by: Li Peng <peng.li@intel.com>
This commit is contained in:
@@ -105,6 +105,18 @@ public:
|
||||
float norm = pow(absSum, 1.0f / pnorm);
|
||||
multiply(src, 1.0f / norm, dst);
|
||||
}
|
||||
else
|
||||
{
|
||||
Mat norm;
|
||||
reduce(buffer, norm, 0, REDUCE_SUM);
|
||||
norm += epsilon;
|
||||
|
||||
// compute inverted norm to call multiply instead divide
|
||||
cv::pow(norm, -1.0f / pnorm, norm);
|
||||
|
||||
repeat(norm, channels, 1, buffer);
|
||||
multiply(src, buffer, dst);
|
||||
}
|
||||
|
||||
if (!blobs.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user