First time here? Check out the FAQ!
answered 2017-07-20 02:24:33 -0600
sure there is, look at the docs:
Mat result; // k result ids Mat responses; // raw responses Mat distances; // 1/distance ~ confidence knn->findNearest(sample, k, result, responses, distances);