Merge pull request #3797 from Dmitry-Me:reduceVariableScope6

This commit is contained in:
Vadim Pisarevsky 2015-03-06 10:20:45 +00:00
commit 092f599aac

View File

@ -180,10 +180,9 @@ public:
const int K = centers.rows;
const int dims = centers.cols;
const float *sample;
for( int i = begin; i<end; ++i)
{
sample = data.ptr<float>(i);
const float *sample = data.ptr<float>(i);
int k_best = 0;
double min_dist = DBL_MAX;