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.

10 lines (9 loc) 535 B
import type { OperationResult, PartialOptions } from "../pipeline/types.js"; import { cv } from "../cv-provider.js"; /** Options for the morphological gradient operation. */ export type MorphologicalGradientOptions = PartialOptions & { /** Kernel size for the morphological gradient operation [x, y] */ size: [number, number]; }; /** Apply morphological gradient to highlight edges (dilation minus erosion). */ export declare function morphologicalGradient(img: cv.Mat, options: MorphologicalGradientOptions): OperationResult;