opencv::rapid

Function rapid

Source
pub fn rapid(
    img: &impl ToInputArray,
    num: i32,
    len: i32,
    pts3d: &impl ToInputArray,
    tris: &impl ToInputArray,
    k: &impl ToInputArray,
    rvec: &mut impl ToInputOutputArray,
    tvec: &mut impl ToInputOutputArray,
    rmsd: &mut f64,
) -> Result<f32>
Expand description

High level function to execute a single rapid harris1990rapid iteration

  1. [extractControlPoints]
  2. [extractLineBundle]
  3. [findCorrespondencies]
  4. [convertCorrespondencies]
  5. [solvePnPRefineLM]

§Parameters

  • img: the video frame
  • num: number of search lines
  • len: search line radius
  • pts3d: the 3D points of the mesh
  • tris: triangle face connectivity
  • K: camera matrix
  • rvec: rotation between mesh and camera. Input values are used as an initial solution.
  • tvec: translation between mesh and camera. Input values are used as an initial solution.
  • rmsd: the 2d reprojection difference

§Returns

ratio of search lines that could be extracted and matched

§C++ default parameters

  • rmsd: 0