ojos
Version:
High level API on top of Mirada (opencv.js) supporting bth browser and node.
29 lines (28 loc) • 1.13 kB
TypeScript
import { Point } from 'mirada';
import { AbstractOperation } from './abstractOperation';
import { OperationExecBaseOptions, WithBorderType, WithKSize } from './types';
export interface BoxFilterOptions extends OperationExecBaseOptions, BoxFilterConcreteOptions {
}
export interface BoxFilterConcreteOptions extends WithBorderType, WithKSize {
/**
* the output image dept. (-1 to use src.depth()).
*/
ddepth?: number;
/**
* anchor point; default value Point(-1,-1) means that the anchor is at the kernel center
*/
anchor?: Point;
/**
* flag, specifying whether the kernel is normalized by its area or not.
*/
normalize?: boolean;
}
/**
* smooths an image. Unnormalized box filter is useful for computing various integral characteristics over each pixel neighborhood, such as covariance matrices of image derivatives (used in dense optical flow algorithms, and so on).
*/
export declare class BoxFilter extends AbstractOperation<BoxFilterOptions> {
name: string;
description: string;
sameSizeAndType: boolean;
protected _exec(o: BoxFilterOptions): void;
}