ojos
Version:
High level API on top of Mirada (opencv.js) supporting bth browser and node.
39 lines (38 loc) • 1.38 kB
TypeScript
import { DecompTypes, Scalar, Size } from 'mirada';
import { AbstractOperation } from './abstractOperation';
import { OperationExecBaseOptions, WithBorderType, WithBorderValue } from './types';
export interface WarpPerspectiveOptions extends OperationExecBaseOptions, WithBorderType, WithBorderValue {
/**
* Coordinates of quadrangle vertices in the source image.
*/
inputs: Scalar;
/**
* Coordinates of the corresponding quadrangle vertices in the destination image.
*/
outputs: Scalar;
/**
* Combination of interpolation methods (INTER_LINEAR or INTER_NEAREST) and the optional flag WARP_INVERSE_MAP, that sets M as the inverse transformation
*/
flags?: number;
/**
* Size of the output image.
*/
size?: Size;
/**
* Method passed to cv::solve (DecompTypes)
*/
solveMethod?: DecompTypes;
/**
* If given input and output points will be drawn as circles. if true will randomly pick colors, or an array of colors can be passed otherwise.
*/
drawPoints?: Scalar[] | true;
}
/**
* Input should be float type and 1, 3or 4 channels. In doubt use toRgba().
*/
export declare class WarpPerspective extends AbstractOperation<WarpPerspectiveOptions> {
name: string;
description: string;
noInPlace: boolean;
protected _exec(o: WarpPerspectiveOptions): void;
}