OpenCV 2.4.8

org.opencv.features2d
Class DMatch

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

public class DMatch
extends java.lang.Object

Structure 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
equals, 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

OpenCV 2.4.8 Documentation