Commit 092f599a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3797 from Dmitry-Me:reduceVariableScope6

parents a65dbc5d 2fb4178f
......@@ -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;
......
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