Threshold

dwv.tool.filter. Threshold

new Threshold(app)

Source:

Threshold filter tool.

Parameters:
Name Type Description
app dwv.App

The associated application.

Methods

activate(bool)

Source:

Activate the filter.

Parameters:
Name Type Description
bool boolean

Flag to activate or not.

addEventListener(type, callback)

Source:

Add an event listener to this class.

Parameters:
Name Type Description
type string

The event type.

callback object

The method associated with the provided event type, will be called with the fired event.

init()

Source:

Initialise the filter. Called once the image is loaded.

removeEventListener(type, callback)

Source:

Remove an event listener from this class.

Parameters:
Name Type Description
type string

The event type.

callback object

The method associated with the provided event type.

run(args)

Source:

Run the filter.

Parameters:
Name Type Description
args *

The filter arguments.