dwv.tool.filter. Threshold

new Threshold(app)

Threshold filter tool.

Parameters:
NameTypeDescription
appdwv.App

The associated application.

Methods

activate(bool)

Activate the filter.

Parameters:
NameTypeDescription
boolboolean

Flag to activate or not.

addEventListener(type, callback)

Add an event listener to this class.

Parameters:
NameTypeDescription
typestring

The event type.

callbackobject

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

init()

Initialise the filter. Called once the image is loaded.

removeEventListener(type, callback)

Remove an event listener from this class.

Parameters:
NameTypeDescription
typestring

The event type.

callbackobject

The method associated with the provided event type.

run(args)

Run the filter.

Parameters:
NameTypeDescription
args*

The filter arguments.