OpenCV 2.4.2

org.opencv.features2d
Class DMatch

java.lang.Object
  extended by org.opencv.features2d.DMatch

public class DMatch
extends java.lang.Object

Struct for matching: query descriptor index, train descriptor index, train image index and distance between descriptors.


Field Summary
 float distance
           
 int imgIdx
          train image index
 int queryIdx
          query descriptor index
 int trainIdx
          train descriptor index
 
Constructor Summary
DMatch()
           
DMatch(int _queryIdx, int _trainIdx, float _distance)
           
DMatch(int _queryIdx, int _trainIdx, int _imgIdx, float _distance)
           
 
Method Summary
 boolean lessThan(DMatch it)
          less is better
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

distance

public float distance

imgIdx

public int imgIdx
train image index


queryIdx

public int queryIdx
query descriptor index


trainIdx

public int trainIdx
train descriptor index

Constructor Detail

DMatch

public DMatch()

DMatch

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

DMatch

public DMatch(int _queryIdx,
              int _trainIdx,
              int _imgIdx,
              float _distance)
Method Detail

lessThan

public boolean lessThan(DMatch it)
less is better


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Official OpenCV 2.4 Documentation