ThresholdFilter

Threshold an image between an input minimum and maximum.

Constructor

new ThresholdFilter()

Methods

getMax() → {number}

Get the threshold maximum.

Returns:

The threshold maximum.

Type: 
number

getMin() → {number}

Get the threshold minimum.

Returns:

The threshold minimum.

Type: 
number

getName() → {string}

Get the name of the filter.

Returns:

The name of the filter.

Type: 
string

getOriginalImage() → {Image}

Get the original image.

Returns:

The original image.

Type: 
Image

setMax(val)

Set the threshold maximum.

Parameters:
NameTypeDescription
valnumber

The threshold maximum.

setMin(val)

Set the threshold minimum.

Parameters:
NameTypeDescription
valnumber

The threshold minimum.

setOriginalImage(image)

Set the original image.

Parameters:
NameTypeDescription
imageImage

The original image.

update() → {Image}

Transform the main image using this filter.

Returns:

The transformed image.

Type: 
Image