Overview | Package | Class | Tree | Index | Help

OpenCV 2.4.3.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.opencv.features2d
Class DMatch

    java.lang.Object
      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
`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`

Overview | Package | Class | Tree | Index | Help

Official OpenCV 2.4 Documentation
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD