LabelImageThresholdBrush

MLModule

author

Florian Link

package

FMEstable/ReleaseMeVis

dll

MLLabelImage

definition

MLLabelImage.def

Purpose

The LabelImageThresholdBrush module provides a brush that allows to draw with an adaptive thresholding brush on a LabelImage. It also supports drawing with a single cluster starting at the center of the brush (region growing).

For interaction on a SoView2D, plug it into a SoView2DLabelImageBrush module.

Input Fields

input0

name: input0, type: Image

The image that is used for adaptive thresholding.

inLabelImage

name: inLabelImage, type: LabelImage(MLBase)

The base output of a LabelImage to draw on.

Output Fields

output0

name: output0, type: Image

The current brush shape (and world coordinates of it), can be used to draw an interactive overlay of the current brush.

output1 (hidden)

name: output1, type: Image

Internal usage.

output2 (hidden)

name: output2, type: Image

Internal usage.

outSelf

name: outSelf, type: MLBase

The brush C++ API, to be plugged into a SoView2DLabelImageBrush.

Parameter Fields

Field Index

Adaptivity: Double

Voxel Write Mode: Enum

adaptivityMax: Double

adaptivityMin: Double

Brush Type: Enum

Label: Integer

Radius: Double

Use Dynamic Threshold On Dragging: Bool

Use Single Cluster: Bool

Visible Fields

Radius

name: radius, type: Double, default: 1

Radius of the brush.

Label

name: label, type: Integer, default: 1

The label value to draw with.

Voxel Write Mode

name: voxelWriteMode, type: Enum, default: WriteAlways

The voxel write mode.

Values:

Title

Name

Always

WriteAlways

If Not Zero

WriteIfNotZero

Brush Type

name: brushType, type: Enum, default: Sphere

The brush type.

Values:

Title

Name

Disc

Disc

Sphere

Sphere

Adaptivity

name: adaptivity, type: Double, default: 0.5, minimum: :field:`adaptivityMin`, maximum: :field:`adaptivityMax`

The adaptivity defines how big the threshold window is. 0 means drawing with a circle/sphere, 1 means maximum theshold adpativity.

Use Dynamic Threshold On Dragging

name: useDynamicThresholdOnDragging, type: Bool, default: TRUE

If enabled, the threshold is adapted while drawing with pressed mouse button.

Use Single Cluster

name: useSingleCluster, type: Bool, default: FALSE

If enabled, only the thresholded connected cluster starting at the center of the brush is used for drawing.

Hidden Fields

adaptivityMin

name: adaptivityMin, type: Double, default: 0

adaptivityMax

name: adaptivityMax, type: Double, default: 1