Reduce variable scope

This commit is contained in:
Dmitry-Me 2015-03-06 10:17:37 +03:00
parent 4e87deae28
commit 2fb4178f7c

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;