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 for applying level set filters to a WEM by transforming the mesh into a level set voxel grid, applying a filter, and remeshing the result.

It utilizes the OpenVDB library.

Windows

Default Panel

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

Parameter Fields

Field Index

Adaptivity: Double

Grid Cell Size: Double

Mode: Enum

Apply: Trigger

id: Integer

Offset: Double

Auto Apply: Bool

Interpolate per node PVLs: Bool

Overwrite label and description: Bool

Build Edges: Bool

isProcessing: Bool

progress: Float

Clear: Trigger

Iterations: Integer

shouldComputeNormals: Bool

Description: String

Label: String

triangulationMode: Enum

elapsedTime: Float

listenToFinishNotifications: Bool

Update Mode: Enum

Enable PVL support: Bool

listenToRepaintNotifications: Bool

workDirectlyOnInputWEMs: Bool

filterChain: String

listenToSelectionChangedNotifications: Bool

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

Defines 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 this is selected, the filter is defined by the filterChain specification.

Iterations

name: iterations, type: Integer, default: 1

Sets the number of iterations for filters that support iterations.

Offset

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

Sets the offset for the Close, Open, Dilate, or Erode filters.

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

Sets 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.

The following will perform two Gaussian smoothing iterations and one dilate iteration with offset 3.5:

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