UNPKG

ppu-ocv

Version:

A type-safe, modular, chainable image processing library built on top of OpenCV.js with a fluent API leveraging pipeline processing.

15 lines (14 loc) 531 B
import type { OperationResult, RequiredOptions } from "../index"; import { cv } from "../index"; declare module "../index" { interface RegisteredOperations { rotate: RotateOptions; } } export interface RotateOptions extends RequiredOptions { /** Angle of rotation in degrees (positive for counter-clockwise) */ angle: number; /** Optional center of rotation. Defaults to the image center. */ center?: cv.Point; } export declare function rotate(img: cv.Mat, options: RotateOptions): OperationResult;