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