diff --git a/modules/flann/include/opencv2/flann/kmeans_index.h b/modules/flann/include/opencv2/flann/kmeans_index.h index e0ee9618bc..b49b8ddded 100644 --- a/modules/flann/include/opencv2/flann/kmeans_index.h +++ b/modules/flann/include/opencv2/flann/kmeans_index.h @@ -275,7 +275,7 @@ public: { public: KMeansDistanceComputer(Distance _distance, const Matrix& _dataset, - const int _branching, const int* _indices, const Matrix& _dcenters, const int _veclen, + const int _branching, const int* _indices, const Matrix& _dcenters, const size_t _veclen, int* _count, int* _belongs_to, std::vector& _radiuses, bool& _converged, cv::Mutex& _mtx) : distance(_distance) , dataset(_dataset) @@ -324,15 +324,16 @@ public: private: Distance distance; const Matrix& dataset; - int branching; + const int branching; const int* indices; const Matrix& dcenters; - int veclen; + const size_t veclen; int* count; int* belongs_to; std::vector& radiuses; bool& converged; cv::Mutex& mtx; + KMeansDistanceComputer& operator=( const KMeansDistanceComputer & ) { return *this; } }; /**