genre | Segmentation |
authors | Andrea Schenk, Hans Meine |
package | MeVisLab/Standard |
dll | MLMiscModules |
definition | MLMiscModules.def |
see also | Threshold, RegionGrowing |
keywords | thresholds, segmentation, preprocessing, binary, inside, outside, interval |
The module IntervalThresh processes an image by filtering just those image values that lie in a certain grey value interval.
Voxels outside this range can be set to zero or to a user defined value. This can be useful for the segmentation of objects that are expected to have grey values in a defined interval.
The interval can be defined in several ways: either by setting a center and a width of the interval or by setting a maximum and a minimum value. The interval is closed, i.e. Min and Max are considered to be part of the inner range.
The user can define new values for voxels lying above, below or inside the interval.
Some common cases are optimized and will be performed faster than the general case:
Note that for the ImgMaxMinusImgOrig mode, the difference between the maximum possible value and the current image value is casted to the same datatype as the input and output has (in fact, the computation is performed in-place). This may lead to unexpected results with negative image values in signed integer images.
Above Value: Enum | Inner Value: Enum | Static: Bool |
Below Value: Enum | Masked Orig: Trigger | User Def. (lowerUserValue): Double |
Binary: Trigger | Max: Double | User Def. (innerUserValue): Double |
Center: Double | Max. (imageMax): Double | User Def. (upperUserValue): Double |
centerWidthSet: Bool | Max. (changedMax): Double | Width: Double |
Clamp: Trigger | Min: Double | |
Clamped Orig: Trigger | Min. (imageMin): Double | |
imageRange: Double | Min. (changedMin): Double |
Defines which value is set in the output image for voxels below the lower border value.
Values:
Title | Name | Description |
---|---|---|
Img Min | ImgMin | Set the minimum value of the output image. |
Img Max | ImgMax | Set the maximum value of the output image. |
Img Orig | ImgOrig | Set the original value of the input image. |
ImgMax-ImgOrig | ImgMaxMinusImgOrig | Set the maximum value of the output image minus the input image's original value (casted to the same datatype!). |
User Def | UserDef | Set the value defined in User Def.. |
Interval Min | IntervalMin | Set the minimum value of the interval. |
Interval Max | IntervalMax | Set the maximum value of the interval. |
Defines which value is set in the output image for voxels insire the defined interval.
The options are the same as for Below Value.
Values:
Title | Name |
---|---|
Img Min | ImgMin |
Img Max | ImgMax |
Img Orig | ImgOrig |
ImgMax-ImgOrig | ImgMaxMinusImgOrig |
User Def | UserDef |
Interval Min | IntervalMin |
Interval Max | IntervalMax |
Defines which value is set in the output image for voxels above the upper border value.
The options are the same as for Below Value.
Values:
Title | Name |
---|---|
Img Min | ImgMin |
Img Max | ImgMax |
Img Orig | ImgOrig |
ImgMax-ImgOrig | ImgMaxMinusImgOrig |
User Def | UserDef |
Interval Min | IntervalMin |
Interval Max | IntervalMax |
Sets the center of the threshold interval.
Sets the width of the threshold interval.
Sets the lower bound of the (closed) threshold interval.
Sets the upper bound of the (closed) threshold interval.
Sets a value to be used for voxels with values below the lower bound.
Sets a value to be used for voxels with values inside defined interval.
Sets a value to be used for voxels with values above the upper bound.
Sets a new minimum value for the output image.
Sets a new maximum value for the output image.
Clamp slider range and thresholds to image (/static) range
Activates preset for binary mask (0 for background, 1 for voxels within specified interval)