class cv::KeyPointsFilter

Overview

A class filters a vector of keypoints. Moreā€¦

#include <features2d.hpp>

class KeyPointsFilter
{
public:
    // methods

    static
    void
    removeDuplicated(std::vector<KeyPoint>& keypoints);

    static
    void
    retainBest(
        std::vector<KeyPoint>& keypoints,
        int npoints
        );

    static
    void
    runByImageBorder(
        std::vector<KeyPoint>& keypoints,
        Size imageSize,
        int borderSize
        );

    static
    void
    runByKeypointSize(
        std::vector<KeyPoint>& keypoints,
        float minSize,
        float maxSize = FLT_MAX
        );

    static
    void
    runByPixelsMask(
        std::vector<KeyPoint>& keypoints,
        const Mat& mask
        );
};

Detailed Documentation

A class filters a vector of keypoints.

Because now it is difficult to provide a convenient interface for all usage scenarios of the keypoints filter class, it has only several needed by now static methods.