-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Cannot use algorithm KDTree in KNearest #8917
Copy link
Copy link
Closed
Milestone
Description
Opencv-3.2-dev
VC 2015 windows 10
Hi,
In example https://github.com/opencv/opencv/blob/master/samples/cpp/points_classifier.cpp i ahve insert line after line :
knn->setAlgorithmType(KNearest::KDTREE);
then I have got an assertion :
OpenCV Error: Assertion failed (std::abs(more - less) <= 1) in cv::ml::medianPartition, file G:\Lib\opencv\modules\ml\src\kdtree.cpp, line 134
I think it is same issue in #4886
Reactions are currently unavailable