WEMLevelSetFilter

MLModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLOpenVDB
definition MLOpenVDB.def
inherits from WEMLevelSetFilterBase
keywords gauss, mean, meancurvature, laplace, median, erode, dilate, close, open

Purpose

The WEMLevelSetFilter allows to apply level set filters to a WEM by transforming the mesh to a level set voxel grid, applying a filter and remeshing the result. It makes use of the OpenVDB (http://www.openvdb.org/) library.

Windows

Default Panel

../../../Projects/MLOpenVDB/MLOpenVDB/Modules/mhelp/Images/Screenshots/WEMLevelSetFilter._default.png

Parameter Fields

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

see WEMGenerator.autoApply

Update Mode

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

see WEMGenerator.updateMode

Apply

name: apply, type: Trigger

see WEMGenerator.apply

Clear

name: clear, type: Trigger

see WEMGenerator.clear

Overwrite label and description

name: overwriteLabelDescription, type: Bool, default: FALSE

see WEMGenerator.overwriteLabelDescription

Label

name: label, type: String

see WEMGenerator.label

Description

name: description, type: String

see WEMGenerator.description

Grid Cell Size

name: gridCellSize, type: Double, default: 1

see WEMLevelSetFilterBase.gridCellSize

Adaptivity

name: adaptivity, type: Double, default: 0.2

see WEMLevelSetFilterBase.adaptivity

Build Edges

name: buildEdges, type: Bool, default: TRUE

see WEMLevelSetFilterBase.buildEdges

Enable PVL support

name: enablePVLSupport, type: Bool, default: FALSE

see WEMLevelSetFilterBase.enablePVLSupport

Interpolate per node PVLs

name: interpolatePerNodePVLs, type: Bool, default: FALSE

see WEMLevelSetFilterBase.interpolatePerNodePVLs

Mode

name: mode, type: Enum, default: Gauss

The filter that is applied.

Values:

Title Name Description
Laplace Laplace  
Mean Curvature MeanCurvature  
Median Median  
Mean Mean  
Gauss Gauss  
Erode Erode  
Dilate Dilate  
Open Open  
Close Close  
Filter Chain FilterChain If filter chain is enabled, the filter is defined by the filterChain specification.

Iterations

name: iterations, type: Integer, default: 1

The number of iterations for filters that support it.

Offset

name: offset, type: Double, default: 1, minimum: 0

The offset for the Close, Open, Dilate or Erode filter.

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

filterChain

name: filterChain, type: String

The filter chain is used when Mode is set to FilterChain. It specifies a chain of filters to be applied, one filter per row. The available filters are:

gaussian [iterations]
meancurvature [iterations]
mean [iterations]
median [iterations]
laplacian [iterations]
opening [distance]
closing [distance]
dilate [distance]
erode [distance]

Comment chars are //, so you can comment the filter chains.

So the following will do two gauss iterations and one dilate with offset 3.5:

// first two gaussian iterations
gaussian 2
// then a dilation
dilate 3.5