Skip to content

detail_CameraParams

stitchingclassOpenCV 5.0.0
import { detail_CameraParams } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSdetail_CameraParams
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Describes camera parameters.

Note: Translation is assumed to be zero during the whole stitching pipeline. :

Constructors and members

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

focal

detail_CameraParams.focal: Focal length

focal: number;

aspect

detail_CameraParams.aspect: Aspect ratio

aspect: number;

ppx

Principal point X

ppx: number;

ppy

Principal point Y

ppy: number;

R

detail_CameraParams.R: Rotation

R: Mat;

t

detail_CameraParams.t: Translation

t: Mat;

K

Construct and return the 3 by 3 camera intrinsic matrix from focal length, aspect ratio and principal point.

K(): Mat;
Returns

The Mat result. 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.