ppu-ocv
Version:
A type-safe, modular, chainable image processing library built on top of OpenCV.js with a fluent API leveraging pipeline processing.
17 lines (16 loc) • 556 B
TypeScript
import type { OperationResult, PartialOptions } from "../index";
import { cv } from "../index";
declare module "../index" {
interface RegisteredOperations {
threshold: ThresholdOptions;
}
}
export interface ThresholdOptions extends PartialOptions {
/** Lower threshold value (0-255) */
lower: number;
/** Upper threshold value (0-255) */
upper: number;
/** Type of thresholding (cv.THRESH_...) */
type: cv.ThresholdTypes;
}
export declare function threshold(img: cv.Mat, options: ThresholdOptions): OperationResult;