findFundamentalMat function
        
Mat
findFundamentalMat(
    
- InputArray points1,
- InputArray points2, {
- int method = FM_RANSAC,
- double ransacReprojThreshold = 3,
- double confidence = 0.99,
- int maxIters = 1000,
- 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);
}