filterHomographyDecompByVisibleRefpoints function

Mat filterHomographyDecompByVisibleRefpoints(
  1. VecMat rotations,
  2. VecMat normals,
  3. InputArray beforePoints,
  4. InputArray afterPoints, {
  5. OutputArray? possibleSolutions,
  6. InputArray? pointsMask,
})

Filters homography decompositions based on additional information.

void cv::filterHomographyDecompByVisibleRefpoints (InputArrayOfArrays rotations, InputArrayOfArrays normals, InputArray beforePoints, InputArray afterPoints, OutputArray possibleSolutions, InputArray pointsMask=noArray())

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

Implementation

Mat filterHomographyDecompByVisibleRefpoints(
  VecMat rotations,
  VecMat normals,
  InputArray beforePoints,
  InputArray afterPoints, {
  OutputArray? possibleSolutions,
  InputArray? pointsMask,
}) {
  possibleSolutions ??= Mat.empty();
  pointsMask ??= Mat.empty();
  cvRun(
    () => ccalib3d.cv_filterHomographyDecompByVisibleRefpoints(
      rotations.ref,
      normals.ref,
      beforePoints.ref,
      afterPoints.ref,
      possibleSolutions!.ref,
      pointsMask!.ref,
      ffi.nullptr,
    ),
  );
  return possibleSolutions;
}