cvAdaptiveThreshold¶
-
MLModule
¶ author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLOpenCVModules
definition MLOpenCVModules.def
Purpose¶
The module cvAdaptiveThreshold
applies an adaptive 2D threshold to the image and creates a binary image (with 0/255 for below/above values).
For more details, search the web for “OpenCV adaptive threshold”.
Note: This module only works on images with the data type uint8.
Parameter Fields¶
Visible Fields¶
Block Size¶
-
name:
blockSize
, type:
Integer
, default:
3
, minimum:
3
¶ Sets the block size for calculating the adaptive threshold (mean/Gaussian kernel size).
The block size must be odd.
Constant¶
-
name:
constant
, type:
Double
, default:
5
¶ Sets a constant that is subtracted from the calculated mean/Gaussian threshold.
The constant is used to bias the resulting threshold value.
Mode¶
-
name:
mode
, type:
Enum
, default:
Gaussian
¶ Defines the adapted threshold mode.
Values:
Title | Name | Description |
---|---|---|
Mean | Mean | The threshold value T(x, y) is a mean of the (blockSize x blockSize) neighborhood of (x, y) minus Constant . |
Gaussian | Gaussian | The threshold value T(x, y) is a weighted sum (cross-correlation with a Gaussian window) of the (blockSize x blockSize) neighborhood of (x, y) minus The default sigma (standard deviation) is used for the specified blockSize . |