ojos
Version:
High level API on top of Mirada (opencv.js) supporting bth browser and node.
20 lines (19 loc) • 918 B
TypeScript
import { ThresholdTypes } from 'mirada';
import { AbstractOperation } from './abstractOperation';
import { OperationExecBaseOptions } from './types';
export interface ThresholdOptions extends OperationExecBaseOptions, ThresholdConcreteOptions {
}
export interface ThresholdConcreteOptions {
thresh: number;
maxval: number;
type: ThresholdTypes;
}
/**
* Applies fixed-level thresholding to a multiple-channel array. The function is typically used to get a bi-level (binary) image out of a grayscale image or for removing a noise, that is, filtering out pixels with too small or too large values. There are several types of thresholding supported by the function. They are determined by type parameter.
*/
export declare class Threshold extends AbstractOperation<ThresholdOptions> {
name: string;
description: string;
sameSizeAndType: boolean;
protected _exec(o: ThresholdOptions): void;
}