fixed IPP related warnings
This commit is contained in:
@@ -1317,9 +1317,9 @@ public:
|
||||
if( cascade->hid_cascade->ipp_stages )
|
||||
{
|
||||
IppiRect iequRect = {equRect.x, equRect.y, equRect.width, equRect.height};
|
||||
ippiRectStdDev_32f_C1R(sum1.ptr<float>(y1), sum1.step,
|
||||
sqsum1.ptr<double>(y1), sqsum1.step,
|
||||
norm1->ptr<float>(y1), norm1->step,
|
||||
ippiRectStdDev_32f_C1R(sum1.ptr<float>(y1), (int)sum1.step,
|
||||
sqsum1.ptr<double>(y1), (int)sqsum1.step,
|
||||
norm1->ptr<float>(y1), (int)norm1->step,
|
||||
ippiSize(ssz.width, ssz.height), iequRect );
|
||||
|
||||
int positive = (ssz.width/ystep)*((ssz.height + ystep-1)/ystep);
|
||||
@@ -1340,9 +1340,9 @@ public:
|
||||
for( int j = 0; j < cascade->count; j++ )
|
||||
{
|
||||
if( ippiApplyHaarClassifier_32f_C1R(
|
||||
sum1.ptr<float>(y1), sum1.step,
|
||||
norm1->ptr<float>(y1), norm1->step,
|
||||
mask1->ptr<uchar>(y1), mask1->step,
|
||||
sum1.ptr<float>(y1), (int)sum1.step,
|
||||
norm1->ptr<float>(y1), (int)norm1->step,
|
||||
mask1->ptr<uchar>(y1), (int)mask1->step,
|
||||
ippiSize(ssz.width, ssz.height), &positive,
|
||||
cascade->hid_cascade->stage_classifier[j].threshold,
|
||||
(IppiHaarClassifier_32f*)cascade->hid_cascade->ipp_stages[j]) < 0 )
|
||||
|
@@ -747,7 +747,7 @@ void HOGCache::normalizeBlockHistogram(float* _hist) const
|
||||
|
||||
float sum = 0;
|
||||
#ifdef HAVE_IPP
|
||||
ippsDotProd_32f(hist,hist,sz,&sum);
|
||||
ippsDotProd_32f(hist,hist,(int)sz,&sum);
|
||||
#else
|
||||
for( i = 0; i < sz; i++ )
|
||||
sum += hist[i]*hist[i];
|
||||
@@ -755,9 +755,9 @@ void HOGCache::normalizeBlockHistogram(float* _hist) const
|
||||
|
||||
float scale = 1.f/(std::sqrt(sum)+sz*0.1f), thresh = (float)descriptor->L2HysThreshold;
|
||||
#ifdef HAVE_IPP
|
||||
ippsMulC_32f_I(scale,hist,sz);
|
||||
ippsThreshold_32f_I( hist, sz, thresh, ippCmpGreater );
|
||||
ippsDotProd_32f(hist,hist,sz,&sum);
|
||||
ippsMulC_32f_I(scale,hist,(int)sz);
|
||||
ippsThreshold_32f_I( hist, (int)sz, thresh, ippCmpGreater );
|
||||
ippsDotProd_32f(hist,hist,(int)sz,&sum);
|
||||
#else
|
||||
for( i = 0, sum = 0; i < sz; i++ )
|
||||
{
|
||||
@@ -768,7 +768,7 @@ void HOGCache::normalizeBlockHistogram(float* _hist) const
|
||||
|
||||
scale = 1.f/(std::sqrt(sum)+1e-3f);
|
||||
#ifdef HAVE_IPP
|
||||
ippsMulC_32f_I(scale,hist,sz);
|
||||
ippsMulC_32f_I(scale,hist,(int)sz);
|
||||
#else
|
||||
for( i = 0; i < sz; i++ )
|
||||
hist[i] *= scale;
|
||||
|
Reference in New Issue
Block a user