Module: Thresholding From Mean ()
This is an experimental module from the Xtra Library: https://xtras.amira-avizo.com.This module performs an adaptive thresholding of the input data based on a deviation from the mean of its grayscale values.
The deviation can be either multiplicative, as a proportion of the mean, or additive, as a static offset from the mean.
Besides, it is also possible to reduce the action of this module to a custom portion of the input data by providing a mask for it.
See also: Adaptive Thresholding, Threshold By Criterion.
Input Grayscale Image [required]
The image to be processed. Supported type is: grayscale (Uniform Scalar Field) image.Input Mask [optional]
The mask of the image to be processed. Supported type is: binary label (Uniform Label Field) image.
Console
Opens the Python Script Object console of the module as the active console window.Interpretation
This port specifies whether the input will be interpreted as a 3D volume or a stack of 2D images for processing.
- "3D": the module configuration is set to 3D. The image will be processed as a whole in 3D.
- "XY planes": the module configuration is set to 2D. The image will be processed slice by slice.
Threshold
The fraction or the additive value according to the Threshold Mode port value.Criterion
This port defines the comparison operator used as criterion:
- less-than: All voxels whose value is less than the adaptive threshold value, are set to 1 otherwise they are set to 0.
- less-or-equal: All voxels whose value is less than or equal to the adaptive threshold value, are set to 1 otherwise they are set to 0.
- equal-to: All voxels whose value is equal to the local adaptive value, are set to 1 otherwise they are set to 0.
- greater-than: All voxels whose value is greater than the local adaptive value, are set to 1 otherwise they are set to 0.
- greater-or-equal: All voxels whose value is greater than or equal to the local adaptive value, are set to 1 otherwise they are set to 0.
- not-equal-to: All voxels whose value is not equal to the local adaptive value, are set to 1 otherwise they are set to 0.
Threshold Mode
Defines the model used to compute the adaptive threshold from the mean.
- Multiplicative mode: The adaptive threshold is equal to
, where value is an input parameter and
is the mean of the input, possibly masked, image x.
- Additive mode: The adaptive threshold is equal to
, where value is an input parameter and
is the mean of the input, possibly masked, image x.