Skip to content

Cannot use algorithm KDTree in KNearest #8917

@LaurentBerger

Description

@LaurentBerger

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions