findFundamentalMat function

Mat findFundamentalMat(
  1. InputArray points1,
  2. InputArray points2, {
  3. int method = FM_RANSAC,
  4. double ransacReprojThreshold = 3,
  5. double confidence = 0.99,
  6. int maxIters = 1000,
  7. OutputArray? mask,
})

Calculates a fundamental matrix from the corresponding points in two images.

Mat cv::findFundamentalMat (InputArray points1, InputArray points2, int method=FM_RANSAC, double ransacReprojThreshold=3., double confidence=0.99, OutputArray mask=noArray())

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

Implementation

Mat findFundamentalMat(
  InputArray points1,
  InputArray points2, {
  int method = FM_RANSAC,
  double ransacReprojThreshold = 3,
  double confidence = 0.99,
  int maxIters = 1000,
  OutputArray? mask,
}) {
  mask ??= Mat.empty();
  final prval = calloc<cvg.Mat>();
  cvRun(
    () => ccalib3d.cv_findFundamentalMat(
      points1.ref,
      points2.ref,
      method,
      ransacReprojThreshold,
      confidence,
      maxIters,
      mask!.ref,
      prval,
      ffi.nullptr,
    ),
  );
  return Mat.fromPointer(prval);
}