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) 479 B
import type { OperationResult, PartialOptions } from "../index"; import { cv } from "../index"; declare module "../index" { interface RegisteredOperations { erode: ErodeOptions; } } export interface ErodeOptions extends PartialOptions { /** Size of the block [x, y] */ size: [number, number]; /** Number of iterations for the erosion operation */ iter: number; } export declare function erode(img: cv.Mat, options: ErodeOptions): OperationResult;