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) • 518 B
TypeScript
import type { OperationResult, PartialOptions } from "../index";
import { cv } from "../index";
declare module "../index" {
interface RegisteredOperations {
morphologicalGradient: MorphologicalGradientOptions;
}
}
export interface MorphologicalGradientOptions extends PartialOptions {
/** Kernel size for the morphological gradient operation [x, y] */
size: [number, number];
}
export declare function morphologicalGradient(img: cv.Mat, options: MorphologicalGradientOptions): OperationResult;