Reduce variable scope
This commit is contained in:
parent
4e87deae28
commit
2fb4178f7c
@ -180,10 +180,9 @@ public:
|
|||||||
const int K = centers.rows;
|
const int K = centers.rows;
|
||||||
const int dims = centers.cols;
|
const int dims = centers.cols;
|
||||||
|
|
||||||
const float *sample;
|
|
||||||
for( int i = begin; i<end; ++i)
|
for( int i = begin; i<end; ++i)
|
||||||
{
|
{
|
||||||
sample = data.ptr<float>(i);
|
const float *sample = data.ptr<float>(i);
|
||||||
int k_best = 0;
|
int k_best = 0;
|
||||||
double min_dist = DBL_MAX;
|
double min_dist = DBL_MAX;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user