Threshold

dwv.image.filter. Threshold

new Threshold()

Source:

Threshold an image between an input minimum and maximum.

Methods

getMax() → {number}

Source:

Get the threshold maximum.

Returns:

The threshold maximum.

Type
number

getMin() → {number}

Source:

Get the threshold minimum.

Returns:

The threshold minimum.

Type
number

getName() → {string}

Source:

Get the name of the filter.

Returns:

The name of the filter.

Type
string

getOriginalImage() → {dwv.image.Image}

Source:

Get the original image.

Returns:

image The original image.

Type
dwv.image.Image

setMax(val)

Source:

Set the threshold maximum.

Parameters:
Name Type Description
val number

The threshold maximum.

setMin(val)

Source:

Set the threshold minimum.

Parameters:
Name Type Description
val number

The threshold minimum.

setOriginalImage(image)

Source:

Set the original image.

Parameters:
Name Type Description
image dwv.image.Image

The original image.

update() → {dwv.image.Image}

Source:

Transform the main image using this filter.

Returns:

The transformed image.

Type
dwv.image.Image