class cv::DMatch

Overview

Class for matching keypoint descriptors. Moreā€¦

#include <types.hpp>

class DMatch
{
public:
    // fields

    float distance;
    int imgIdx;
    int queryIdx;
    int trainIdx;

    // construction

    DMatch();

    DMatch(
        int _queryIdx,
        int _trainIdx,
        float _distance
        );

    DMatch(
        int _queryIdx,
        int _trainIdx,
        int _imgIdx,
        float _distance
        );

    // methods

    bool
    operator<(const DMatch& m) const;
};

Detailed Documentation

Class for matching keypoint descriptors.

query descriptor index, train descriptor index, train image index, and distance between descriptors.