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) • 505 B
TypeScript
import type { OperationResult, PartialOptions } from "../index";
import { cv } from "../index";
declare module "../index" {
interface RegisteredOperations {
canny: CannyOptions;
}
}
export interface CannyOptions extends PartialOptions {
/** Lower threshold for the hysteresis procedure (0-255) */
lower: number;
/** Upper threshold for the hysteresis procedure (0-255) */
upper: number;
}
export declare function canny(img: cv.Mat, options: CannyOptions): OperationResult;