OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::DMatch Class Reference

Class for matching keypoint descriptors. More...

#include <opencv2/core/types.hpp>

Collaboration diagram for cv::DMatch:

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 ( )

◆ DMatch() [2/3]

cv::DMatch::DMatch ( int  _queryIdx,
int  _trainIdx,
float  _distance 
)

◆ DMatch() [3/3]

cv::DMatch::DMatch ( int  _queryIdx,
int  _trainIdx,
int  _imgIdx,
float  _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

Referenced by cv::FileNode::operator>>(), and cv::FileStorage::write().

◆ queryIdx

int cv::DMatch::queryIdx

query descriptor index

Referenced by cv::FileNode::operator>>(), and cv::FileStorage::write().

◆ trainIdx

int cv::DMatch::trainIdx

train descriptor index

Referenced by cv::FileNode::operator>>(), and cv::FileStorage::write().


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