cvAdaptiveThreshold

MLModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLOpenCVModules
definition MLOpenCVModules.def

Purpose

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 adaptiveThreshold”.

Note: This module only works on MLuint8 datatype.

Windows

Default Panel

../../../Modules/ML/MLOpenCVModules/mhelp/Images/Screenshots/cvAdaptiveThreshold._default.png

Input Fields

input0

name: input0, type: Image

Output Fields

output0

name: output0, type: Image

Parameter Fields

Visible Fields

Block Size

name: blockSize, type: Integer, default: 3, minimum: 3

The blockSize for the calculation of the adaptive threshold (mean/gaussian kernel size). It needs to be odd.

Constant

name: constant, type: Double, default: 5

A constant that is subtracted from the mean/gaussian threshold that is calculated. It is used to bias the resulting threshold.

Mode

name: mode, type: Enum, default: Gaussian

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 Constant. The default sigma (standard deviation) is used for the specified blockSize .