Odometry
import { Odometry } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
odometry value in the OpenCV API.
Constructors and members
static new
Create an owned Odometry object. Release native handles with using or delete().
new(otype: OdometryType, settings: OdometrySettings, algtype: OdometryAlgoType): Odometry;3 available overloads
new(): Odometry;new(otype: OdometryType): Odometry;new(otype: OdometryType, settings: OdometrySettings, algtype: OdometryAlgoType): Odometry;otypeotype argument (OdometryType).
settingssettings argument (OdometrySettings).
algtypealgtype argument (OdometryAlgoType).
The Odometry result.
Upstream declaration ↗Upstream declaration 2 ↗Upstream declaration 3 ↗
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;The this result.
compute1
Compute Rigid Transformation between two frames so that Rt * src = dst
compute1(srcDepth: Mat, dstDepth: Mat, Rt: Mat): boolean;srcDepthsource depth ("original" image)
dstDepthdestination depth ("rotated" image)
RtOutput destination, filled by the native operation. Rigid transformation, which will be calculated, in form: { R_11 R_12 R_13 t_1 R_21 R_22 R_23 t_2 R_31 R_32 R_33 t_3 0 0 0 1 }
true on success, false if failed to find the transformation
compute2
Compute Rigid Transformation between two frames so that Rt * src = dst
compute2(srcDepth: Mat, srcRGB: Mat, dstDepth: Mat, dstRGB: Mat, Rt: Mat): boolean;srcDepthsource depth ("original" image)
srcRGBsource RGB
dstDepthdestination depth ("rotated" image)
dstRGBdestination RGB
RtOutput destination, filled by the native operation. Rigid transformation, which will be calculated, in form: { R_11 R_12 R_13 t_1 R_21 R_22 R_23 t_2 R_31 R_32 R_33 t_3 0 0 0 1 }
true on success, false if failed to find the transformation
getNormalsComputer
Get the normals computer object used for normals calculation (if presented). The normals computer is generated at first need during prepareFrame when normals are required for the ICP algorithm but not presented by a user. Re-generated each time the related settings change or a new frame arrives with the different size.
getNormalsComputer(): RgbdNormals | null;The RgbdNormals | null result.
prepareFrame
Prepare frame for odometry calculation
prepareFrame(frame: OdometryFrame): void;frameodometry prepare this frame as src frame and dst frame simultaneously
prepareFrames
Prepare frame for odometry calculation
prepareFrames(srcFrame: OdometryFrame, dstFrame: OdometryFrame): void;srcFrameframe will be prepared as src frame ("original" image)
dstFrameframe will be prepared as dsr frame ("rotated" image)
compute
Compute Rigid Transformation between two frames so that Rt * src = dst Both frames, source and destination, should have been prepared by calling prepareFrame() first
compute(srcFrame: OdometryFrame, dstFrame: OdometryFrame, Rt: Mat): boolean;srcFramesrc frame ("original" image)
dstFramedst frame ("rotated" image)
RtOutput destination, filled by the native operation. Rigid transformation, which will be calculated, in form: { R_11 R_12 R_13 t_1 R_21 R_22 R_23 t_2 R_31 R_32 R_33 t_3 0 0 0 1 }
true on success, false if failed to find the transformation
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.