OtsuThreshold

MLModule
genre Segmentation
status stable
author Matthias Koenig
package MeVisLab/Standard
dll MLSegmentation
definition MLSegmentation.def
keywords threshold, otsu

Purpose

The module OtsuThreshold computes automatically a threshold according to Otsu and segments the image into 0 (lower the threshold) and 1 (greater the threshold).

Details

See:

N. Otsu, A Threshold Selection Methods from Gray-Level Histograms,
IEEE Trans. Systems, Man and Cybernetics, 1979, Vol. 9, 62--66

Tips

Does only work with unsigned int 16 data type as input.

Windows

Default Panel

../../../Modules/ML/MLSegmentation/mhelp/Images/Screenshots/OtsuThreshold._default.png

Input Fields

input0

name: input0, type: Image

Input will be converted internally to unsigned int 16 for the histogram computation.

Output Fields

output0

name: output0, type: Image

Output is a binary segmentation of the image according to the computed threshold. Output image has unsigned int 16 data type.

Parameter Fields

Visible Fields

Bin Size

name: binSize, type: Integer, default: 128

Sets the number of internally used bins for the histogram computation.

Apply

name: apply, type: Trigger

If pressed, the module computes anew.

Auto Apply

name: autoApply, type: Bool, default: FALSE

If checked, the module computes anew on each field change.

Threshold:

name: threshold, type: Integer, default: 0

Sets the threshold for the Otsu segmentation.