ThresholdFilter
Source: filter.js:8
Threshold an image between an input minimum and maximum.
Constructor
new ThresholdFilter(): ThresholdFilterInstance Methods
getMin(): number
Get the threshold minimum.
Returns
number— The threshold minimum.
setMin(val: number)
Set the threshold minimum.
Parameters
val(number) — The threshold minimum.
getMax(): number
Get the threshold maximum.
Returns
number— The threshold maximum.
setMax(val: number)
Set the threshold maximum.
Parameters
val(number) — The threshold maximum.
getName(): string
Get the name of the filter.
Returns
string— The name of the filter.
setOriginalImage(image: Image)
Set the original image.
Parameters
image(Image) — The original image.
getOriginalImage(): Image
Get the original image.
Returns
Image— The original image.
update(): Image
Transform the main image using this filter.
Returns
Image— The transformed image.