findEssentialMatCameraMatrix function

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

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

Mat cv::findEssentialMat (InputArray points1, InputArray points2, InputArray cameraMatrix, 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#gad245d60e64d0c1270dbfd0520847bb87

Implementation

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