OpenCV  3.4.7
Open Source Computer Vision
Public Member Functions | Public Attributes | List of all members
cv::DMatch Class Reference

Class for matching keypoint descriptors. More...

#include <opencv2/core/types.hpp>

Public Member Functions

 DMatch ()
 
 DMatch (int _queryIdx, int _trainIdx, float _distance)
 
 DMatch (int _queryIdx, int _trainIdx, int _imgIdx, float _distance)
 
bool operator< (const DMatch &m) const
 

Public Attributes

float distance
 
int imgIdx
 train image index More...
 
int queryIdx
 query descriptor index More...
 
int trainIdx
 train descriptor index More...
 

Detailed Description

Class for matching keypoint descriptors.

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

Constructor & Destructor Documentation

§ DMatch() [1/3]

cv::DMatch::DMatch ( )
Python:
<DMatch object>=cv.DMatch()
<DMatch object>=cv.DMatch(_queryIdx, _trainIdx, _distance)
<DMatch object>=cv.DMatch(_queryIdx, _trainIdx, _imgIdx, _distance)

§ DMatch() [2/3]

cv::DMatch::DMatch ( int  _queryIdx,
int  _trainIdx,
float  _distance 
)
Python:
<DMatch object>=cv.DMatch()
<DMatch object>=cv.DMatch(_queryIdx, _trainIdx, _distance)
<DMatch object>=cv.DMatch(_queryIdx, _trainIdx, _imgIdx, _distance)

§ DMatch() [3/3]

cv::DMatch::DMatch ( int  _queryIdx,
int  _trainIdx,
int  _imgIdx,
float  _distance 
)
Python:
<DMatch object>=cv.DMatch()
<DMatch object>=cv.DMatch(_queryIdx, _trainIdx, _distance)
<DMatch object>=cv.DMatch(_queryIdx, _trainIdx, _imgIdx, _distance)

Member Function Documentation

§ operator<()

bool cv::DMatch::operator< ( const DMatch m) const

Member Data Documentation

§ distance

float cv::DMatch::distance

§ imgIdx

int cv::DMatch::imgIdx

train image index

§ queryIdx

int cv::DMatch::queryIdx

query descriptor index

§ trainIdx

int cv::DMatch::trainIdx

train descriptor index


The documentation for this class was generated from the following file: