Reduce variable scope

pull/3797/head
Dmitry-Me 10 years ago
parent 4e87deae28
commit 2fb4178f7c
  1. 3
      modules/core/src/kmeans.cpp

@ -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;

Loading…
Cancel
Save