findEssentialMat function

Mat findEssentialMat(
  1. InputArray points1,
  2. InputArray points2, {
  3. double focal = 1.0,
  4. Point2d? pp,
  5. int method = RANSAC,
  6. double prob = 0.999,
  7. double threshold = 1.0,
  8. int maxIters = 1000,
  9. OutputArray? mask,
})

Calculates an essential matrix from the corresponding points in two images.

Mat cv::findEssentialMat (InputArray points1, InputArray points2, double focal=1.0, Point2d pp=Point2d(0, 0), int method=RANSAC, double prob=0.999, double threshold=1.0, int maxIters=1000, OutputArray mask=noArray())

https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#gab39a252d16802e86d7d712b1065a1a51

Implementation

Mat findEssentialMat(
  InputArray points1,
  InputArray points2, {
  double focal = 1.0,
  Point2d? pp,
  int method = RANSAC,
  double prob = 0.999,
  double threshold = 1.0,
  int maxIters = 1000,
  OutputArray? mask,
}) {
  mask ??= Mat.empty();
  final prval = calloc<cvg.Mat>();
  pp ??= Point2d(0, 0);
  cvRun(
    () => ccalib3d.cv_findEssentialMat(
      points1.ref,
      points2.ref,
      focal,
      pp!.ref,
      method,
      prob,
      threshold,
      maxIters,
      mask!.ref,
      prval,
      ffi.nullptr,
    ),
  );
  return Mat.fromPointer(prval);
}