Fix "assignment operator could not be generated" warnings

pull/3458/head
Takahiro Poly Horikawa 10 years ago
parent 180e54d09d
commit 553bb7956e
  1. 7
      modules/flann/include/opencv2/flann/kmeans_index.h

@ -275,7 +275,7 @@ public:
{
public:
KMeansDistanceComputer(Distance _distance, const Matrix<ElementType>& _dataset,
const int _branching, const int* _indices, const Matrix<double>& _dcenters, const int _veclen,
const int _branching, const int* _indices, const Matrix<double>& _dcenters, const size_t _veclen,
int* _count, int* _belongs_to, std::vector<DistanceType>& _radiuses, bool& _converged, cv::Mutex& _mtx)
: distance(_distance)
, dataset(_dataset)
@ -324,15 +324,16 @@ public:
private:
Distance distance;
const Matrix<ElementType>& dataset;
int branching;
const int branching;
const int* indices;
const Matrix<double>& dcenters;
int veclen;
const size_t veclen;
int* count;
int* belongs_to;
std::vector<DistanceType>& radiuses;
bool& converged;
cv::Mutex& mtx;
KMeansDistanceComputer& operator=( const KMeansDistanceComputer & ) { return *this; }
};
/**

Loading…
Cancel
Save