I'm trying to adapt code using opencv 2.4.6 to use opencv 3.0.0. In 2.4.6 I could use : find_nearest(const Mat& samples, int k, Mat* results=0, const float* neighbors=0, Mat neighborResponses=0, Mat* dist=0 ) const to get the neighbors. How can I do it using opencv 3.0.0