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) • 582 B
TypeScript
import type { OperationResult, PartialOptions } from "../index";
import { cv } from "../index";
declare module "../index" {
interface RegisteredOperations {
border: BorderOptions;
}
}
export interface BorderOptions extends PartialOptions {
/** Size of the border in pixels */
size: number;
/** Border type (e.g., cv.BORDER_CONSTANT) */
borderType: cv.BorderTypes;
/** Border color in [B, G, R, A] format */
borderColor: [cv.int, cv.int, cv.int, cv.int];
}
export declare function border(img: cv.Mat, options: BorderOptions): OperationResult;