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.

13 lines (12 loc) 455 B
import type { OperationResult, RequiredOptions } from "../index"; import { cv } from "../index"; declare module "../index" { interface RegisteredOperations { convert: ConvertOptions; } } export interface ConvertOptions extends RequiredOptions { /** Desired matrix type (cv.CV_...) if negative, it will be the same as input */ rtype: number; } export declare function convert(img: cv.Mat, options: ConvertOptions): OperationResult;