pub fn extract_control_points(
num: i32,
len: i32,
pts3d: &impl ToInputArray,
rvec: &impl ToInputArray,
tvec: &impl ToInputArray,
k: &impl ToInputArray,
imsize: Size,
tris: &impl ToInputArray,
ctl2d: &mut impl ToOutputArray,
ctl3d: &mut impl ToOutputArray,
) -> Result<()>
Expand description
Extract control points from the projected silhouette of a mesh
see drummond2002real Sec 2.1, Step b
ยงParameters
- num: number of control points
- len: search radius (used to restrict the ROI)
- pts3d: the 3D points of the mesh
- rvec: rotation between mesh and camera
- tvec: translation between mesh and camera
- K: camera intrinsic
- imsize: size of the video frame
- tris: triangle face connectivity
- ctl2d: the 2D locations of the control points
- ctl3d: matching 3D points of the mesh