Commit bf699c38 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #358 from DirtyMaster:patch-1

parents 9011368a 9382f0ed
...@@ -549,7 +549,9 @@ protected: ...@@ -549,7 +549,9 @@ protected:
offsetY[n] = x2*features.cols*nchannels + y2*nchannels + z; offsetY[n] = x2*features.cols*nchannels + y2*nchannels + z;
} }
// lookup tables for mapping linear index to offset pairs // lookup tables for mapping linear index to offset pairs
#ifdef _OPENMP
#pragma omp parallel for
#endif
for (int i = 0; i < height; ++i) for (int i = 0; i < height; ++i)
{ {
float *regFeaturesPtr = regFeatures.ptr<float>(i*stride/shrink); float *regFeaturesPtr = regFeatures.ptr<float>(i*stride/shrink);
...@@ -599,6 +601,9 @@ protected: ...@@ -599,6 +601,9 @@ protected:
dstM.setTo(0); dstM.setTo(0);
float step = 2.0f * CV_SQR(stride) / CV_SQR(ipSize) / nTreesEval; float step = 2.0f * CV_SQR(stride) / CV_SQR(ipSize) / nTreesEval;
#ifdef _OPENMP
#pragma omp parallel for
#endif
for (int i = 0; i < height; ++i) for (int i = 0; i < height; ++i)
{ {
int *pIndex = indexes.ptr<int>(i); int *pIndex = indexes.ptr<int>(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment