KNN c++ implemenation still uses old style structures (Feature #265)
Associated revisions
Merge pull request #265 from taka-no-me:doc_signatures
History
Updated by Maria Dimashova over 14 years ago
In current revision 3904 there are methods of CvKNearest class that used Mat:
CvKNearest( const Mat& trainData, const Mat& responses, const Mat& sampleIdx=Mat(), bool isRegression=false, int max_k=32 );
bool train( const Mat& trainData, const Mat& responses, const Mat& sampleIdx=Mat(), bool isRegression=false, int maxK=32, bool updateBase=false );
float find_nearest( const Mat& samples, int k, Mat* results=0, const float** neighbors=0, Mat* neighborResponses=0, Mat* dist=0 ) const;
float find_nearest( const Mat& samples, int k, Mat& results, Mat& neighborResponses, Mat& dists) const;
- Status changed from Open to Done
- (deleted custom field) set to fixed