class cv::detail::BestOf2NearestRangeMatcher

#include <matchers.hpp>

class BestOf2NearestRangeMatcher: public cv::detail::BestOf2NearestMatcher
{
public:
    // construction

    BestOf2NearestRangeMatcher(
        int range_width = 5,
        bool try_use_gpu = false,
        float match_conf = 0.3f,
        int num_matches_thresh1 = 6,
        int num_matches_thresh2 = 6
        );

    // methods

    void
    operator()(
        const std::vector<ImageFeatures>& features,
        std::vector<MatchesInfo>& pairwise_matches,
        const cv::UMat& mask = cv::UMat()
        );

protected:
    // fields

    int range_width_;
};

Inherited Members

public:
    // methods

    virtual
    void
    collectGarbage();

    bool
    isThreadSafe() const;

    void
    operator()(
        const ImageFeatures& features1,
        const ImageFeatures& features2,
        MatchesInfo& matches_info
        );

    void
    operator()(
        const std::vector<ImageFeatures>& features,
        std::vector<MatchesInfo>& pairwise_matches,
        const cv::UMat& mask = cv::UMat()
        );

    virtual
    void
    collectGarbage();

protected:
    // fields

    bool is_thread_safe_;
    Ptr<FeaturesMatcher> impl_;
    int num_matches_thresh1_;
    int num_matches_thresh2_;

    // methods

    virtual
    void
    match(
        const ImageFeatures& features1,
        const ImageFeatures& features2,
        MatchesInfo& matches_info
        ) = 0;

    virtual
    void
    match(
        const ImageFeatures& features1,
        const ImageFeatures& features2,
        MatchesInfo& matches_info
        );