rapid_extractControlPoints
import { rapid_extractControlPoints } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Extract control points from the projected silhouette of a mesh
see [drummond2002real] Sec 2.1, Step b
rapid_extractControlPoints(num: number, len: number, pts3d: Mat, rvec: Mat, tvec: Mat, K: Mat, imsize: Size, tris: Mat, ctl2d: Mat, ctl3d: Mat): void;numnumber of control points
lensearch radius (used to restrict the ROI)
pts3dthe 3D points of the mesh
rvecrotation between mesh and camera
tvectranslation between mesh and camera
Kcamera intrinsic
imsizesize of the video frame
tristriangle face connectivity
ctl2dOutput destination, filled by the native operation. the 2D locations of the control points
ctl3dOutput destination, filled by the native operation. matching 3D points of the mesh
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.