Skip to content

rapid_rapid

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

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

ARGUMENTSimg, num, len, pts3d
FUNCTIONrapid_rapid
RETURN TYPErapid_rapidResult
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

High level function to execute a single rapid [harris1990rapid] iteration

  1. extractControlPoints
  2. extractLineBundle
  3. findCorrespondencies
  4. convertCorrespondencies
  5. solvePnPRefineLM
rapid_rapid(img: Mat, num: number, len: number, pts3d: Mat, tris: Mat, K: Mat, rvec: Mat, tvec: Mat): rapid_rapidResult;
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

Input/output value, modified by the native operation. rotation between mesh and camera. Input values are used as an initial solution.

tvec

Input/output value, modified by the native operation. translation between mesh and camera. Input values are used as an initial solution.

Returns

ratio of search lines that could be extracted and matched Scalar output parameters are returned as named fields in this object. Release returned native handles with using or delete(), including handles nested in results.

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.