1 | initial version |
For C++ this would work with
cv::KeyPointsFilter::retainBest(keypoints, 5000);
which would retain the 5000 best features, maybe it's also wrapped for Java. If not you can easily do it by yourself checking the response-values of your keypoints, i.e. sort them according to the response-values and take the x highest ones.