pub fn rapid(
img: &dyn ToInputArray,
num: i32,
len: i32,
pts3d: &dyn ToInputArray,
tris: &dyn ToInputArray,
k: &dyn ToInputArray,
rvec: &mut dyn ToInputOutputArray,
tvec: &mut dyn ToInputOutputArray,
rmsd: &mut f64
) -> Result<f32>
Expand description
High level function to execute a single rapid harris1990rapid iteration
- [extractControlPoints]
- [extractLineBundle]
- [findCorrespondencies]
- [convertCorrespondencies]
- [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