Skip to content

rapid_extractControlPoints

rapidfunctionOpenCV 5.0.0
import { rapid_extractControlPoints } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSnum, len, pts3d, rvec
FUNCTIONrapid_extractControlPoints
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
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

Output destination, filled by the native operation. the 2D locations of the control points

ctl3d

Output 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.