WEMThreshold

MLModule
genre WEMProcessing
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLWEMModules
definition MLWEMModules.def
see also SoWEMRenderer
inherits from WEMProcessor
keywords surface, segmentation

Purpose

The module WEMThreshold removes nodes from a WEM with PVL values within a given interval.

With the nodes removed, the attached edges and faces are removed as well.

The module can optionally subdivide faces where one or two nodes were removed.

Windows

Default Panel

../../../Modules/ML/MLWEMModules/mhelp/Images/Screenshots/WEMThreshold._default.png

Input Fields

inWEM

name: inWEM, type: WEM(MLBase)
For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

Output Fields

outWEM

name: outWEM, type: WEM(MLBase)
For accessing this object via scripting see the Scripting Reference: MLWEMWrapper.

Parameter Fields

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

If checked, the module computes anew on any parameter field change.

see also WEMGenerator.autoApply

Update Mode

name: updateMode, type: Enum, default: AutoUpdate, deprecated name: autoUpdate

Defines how this module should react on any input field change.

see also WEMGenerator.updateMode

Apply

name: apply, type: Trigger

If pressed, the module computes anew.

see also WEMGenerator.apply

Clear

name: clear, type: Trigger

If pressed, the output WEM is cleared (made empty).

see also WEMGenerator.clear

Overwrite label and description

name: overwriteLabelDescription, type: Bool, default: FALSE

If checked, label and description strings are set in the output WEM to Label and Description.

see also WEMGenerator.overwriteLabelDescription

Label

name: label, type: String

Sets a label string in the output WEM.

see also WEMGenerator.label

Description

name: description, type: String

Sets a description string in the output WEM.

see also WEMGenerator.description

Lower Threshold

name: lowerThreshold, type: Double, default: 0

Sets the lower threshold value.

Upper Threshold

name: upperThreshold, type: Double, default: 1000

Sets the upper threshold value.

Inverse Interval

name: inverseInterval, type: Bool, default: FALSE

If checked, the threshold interval is inverted and nodes with values inside the interval are being removed.

Node Placement

name: nodePlacement, type: Enum, default: LinearInterpolation

Defines how the new nodes are inserted if triangles are clipped.

This also defines how the PVL values of new nodes are interpolated.

Values:

Title Name Description
Remove Nodes RemoveNodes The nodes are completely removed. This also removed adjacent faces and edges. No need to interpolate any PVL value.
Middle Placement MiddlePlacement Places new nodes on an edge into the middle between the original head and tail nodes. The PVL values of new nodes are all copies of the nearest node still inside.
Linear Interpolation LinearInterpolation Places new nodes onto an edge, linearly interpolated by the PVL values of head and tail. The PVL values are all linearly interpolated.

PVL

name: selectedPrimitiveValueList, type: String

Sets the name of the PrimitiveValueList for which the thresholding should be applied.

Generate Edges

name: generateEdges, type: Bool, default: FALSE

If checked, the output WEM is guaranteed to have edges.

If the module works on a copy of the input WEM, edges are not copied by default as an optimization.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, persistent: no

see WEMGenerator.isProcessing

elapsedTime

name: elapsedTime, type: Float, persistent: no

see WEMGenerator.elapsedTime

id

name: id, type: Integer, default: 0

see WEMGenerator.id

shouldComputeNormals

name: shouldComputeNormals, type: Bool, default: TRUE

see WEMGenerator.shouldComputeNormals

workDirectlyOnInputWEMs

name: workDirectlyOnInputWEMs, type: Bool, default: FALSE

see WEMProcessor.workDirectlyOnInputWEMs

listenToFinishNotifications

name: listenToFinishNotifications, type: Bool, default: TRUE

see WEMProcessor.listenToFinishNotifications

listenToRepaintNotifications

name: listenToRepaintNotifications, type: Bool, default: TRUE

see WEMProcessor.listenToRepaintNotifications

listenToSelectionChangedNotifications

name: listenToSelectionChangedNotifications, type: Bool, default: TRUE

see WEMProcessor.listenToSelectionChangedNotifications

progress

name: progress, type: Float, persistent: no

see WEMProcessor.progress

triangulationMode

name: triangulationMode, type: Enum, default: Strip

see WEMProcessor.triangulationMode

primitiveValueLists

name: primitiveValueLists, type: String

primitiveValueListValid

name: primitiveValueListValid, type: Bool, default: FALSE