Skip to content

PyRotationWarper

stitchingclassOpenCV 5.0.0
import { PyRotationWarper } 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.

py rotation warper value in the OpenCV API.

Constructors and members

static new

Create an owned PyRotationWarper object. Release native handles with using or delete().

new(): PyRotationWarper;
2 available overloads
new(_0: EmbindString, scale: number): PyRotationWarper;
new(): PyRotationWarper;
_0

0 argument (EmbindString).

scale

scale argument (number).

Returns

The PyRotationWarper result.

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.

warpPoint

Projects the image point.

warpPoint(pt: Point2f, K: Mat, R: Mat): Point2f;
pt

Source point

K

Camera intrinsic parameters

R

Camera rotation matrix

Returns

Projected point

warpPointBackward

Projects the image point backward.

warpPointBackward(pt: Point2f, K: Mat, R: Mat): Point2f;
pt

Projected point

K

Camera intrinsic parameters

R

Camera rotation matrix

Returns

Backward-projected point

buildMaps

Builds the projection maps according to the given camera data.

buildMaps(src_size: Size, K: Mat, R: Mat, xmap: Mat, ymap: Mat): Rect;
src_size

Source image size

K

Camera intrinsic parameters

R

Camera rotation matrix

xmap

Output destination, filled by the native operation. Projection map for the x axis

ymap

Output destination, filled by the native operation. Projection map for the y axis

Returns

Projected image minimum bounding box

warp

Projects the image.

warp(src: Mat, K: Mat, R: Mat, interp_mode: number, border_mode: number, dst: Mat): Point;
src

Source image

K

Camera intrinsic parameters

R

Camera rotation matrix

interp_mode

Interpolation mode

border_mode

Border extrapolation mode

dst

Output destination, filled by the native operation. Projected image

Returns

Project image top-left corner

warpBackward

Projects the image backward.

warpBackward(src: Mat, K: Mat, R: Mat, interp_mode: number, border_mode: number, dst_size: Size, dst: Mat): void;
src

Projected image

K

Camera intrinsic parameters

R

Camera rotation matrix

interp_mode

Interpolation mode

border_mode

Border extrapolation mode

dst_size

Backward-projected image size

dst

Output destination, filled by the native operation. Backward-projected image

warpRoi

Compute the integer bounding rectangle of an image warped using the supplied intrinsic matrix and camera rotation.

warpRoi(src_size: Size, K: Mat, R: Mat): Rect;
src_size

Source image bounding box

K

Camera intrinsic parameters

R

Camera rotation matrix

Returns

Projected image minimum bounding box

getScale

Return the scale configured on this PyRotationWarper object.

getScale(): number;
Returns

The number result.

setScale

Set the scale used by this PyRotationWarper object.

setScale(arg1: number): void;
arg1

arg1 argument (number).

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.