PyRotationWarper
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;_00 argument (EmbindString).
scalescale argument (number).
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;The this result.
warpPoint
Projects the image point.
warpPoint(pt: Point2f, K: Mat, R: Mat): Point2f;ptSource point
KCamera intrinsic parameters
RCamera rotation matrix
Projected point
warpPointBackward
Projects the image point backward.
warpPointBackward(pt: Point2f, K: Mat, R: Mat): Point2f;ptProjected point
KCamera intrinsic parameters
RCamera rotation matrix
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_sizeSource image size
KCamera intrinsic parameters
RCamera rotation matrix
xmapOutput destination, filled by the native operation. Projection map for the x axis
ymapOutput destination, filled by the native operation. Projection map for the y axis
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;srcSource image
KCamera intrinsic parameters
RCamera rotation matrix
interp_modeInterpolation mode
border_modeBorder extrapolation mode
dstOutput destination, filled by the native operation. Projected image
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;srcProjected image
KCamera intrinsic parameters
RCamera rotation matrix
interp_modeInterpolation mode
border_modeBorder extrapolation mode
dst_sizeBackward-projected image size
dstOutput 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_sizeSource image bounding box
KCamera intrinsic parameters
RCamera rotation matrix
Projected image minimum bounding box
getScale
Return the scale configured on this PyRotationWarper object.
getScale(): number;The number result.
setScale
Set the scale used by this PyRotationWarper object.
setScale(arg1: number): void;arg1arg1 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.