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) 462 B
import type { OperationResult, RequiredOptions } from "../index"; import { cv } from "../index"; declare module "../index" { interface RegisteredOperations { resize: ResizeOptions; } } export interface ResizeOptions extends RequiredOptions { /** Width of the resized image */ width: number; /** Height of the resized image */ height: number; } export declare function resize(img: cv.Mat, options: ResizeOptions): OperationResult;