DMatch constructor

DMatch(
  1. int queryIdx,
  2. int trainIdx,
  3. int imgIdx,
  4. double distance,
)

Implementation

factory DMatch(int queryIdx, int trainIdx, int imgIdx, double distance) {
  final ptr = calloc<cvg.DMatch>()
    ..ref.queryIdx = queryIdx
    ..ref.trainIdx = trainIdx
    ..ref.imgIdx = imgIdx
    ..ref.distance = distance;
  return DMatch._(ptr);
}