Purpose

The module Threshold transforms the input image into a binary image.

In that binary image, voxels below the threshold are set to the image's minimum value, and voxels at or above the threshold are set to the image's maximum value.

Details

If the field Use relative threshold option is checked, the threshold value is specified as a relative threshold in the range 0..1. This range is mapped to the image's min-max-range.

Otherwise, the threshold value specifies an absolute image grey value.

Windows

Default Panel

../../../Modules/ML/MLMiscModules/mhelp/Images/Screenshots/Threshold._default.png

Input Fields

input0

name: input0, type: Image

Output Fields

output0

name: output0, type: Image

Parameter Fields

Visible Fields

Threshold

name: threshold, type: Double, default: 0, minimum: :field:`minValue`, maximum: :field:`maxValue`, deprecated name: Threshold

Sets a threshold value, either as an absolute grey value or a relative value.

Use relative threshold

name: relativeThreshold, type: Bool, default: FALSE, deprecated name: RelativeThreshold

If checked, the threshold is interpretated as a value relative to the min-max-range of the image.

Hidden Fields

minValue

name: minValue, type: Double, default: 0, deprecated name: MinValue

maxValue

name: maxValue, type: Double, default: 1, deprecated name: MaxValue