LabelImageThresholdBrush¶
- MLModule¶
author
Florian Link
package
dll
definition
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
LabelImageto 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.
outSelf¶
- name: outSelf, type: MLBase¶
The brush C++ API, to be plugged into a
SoView2DLabelImageBrush.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
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.