Thresholding#
This module contains vairous thresholding routines, including hysteresis thresholding.
Module towards smart thresholding routines.
- threshold(source, sink=None, threshold=None, hysteresis_threshold=None, seeds=None, background=None)[source]#
Hysteresis thresholding.
Arguments
- sourcearray
Input source.
- sinkarray or None
If None, a new array is allocated.
- thresholdfloat
The threshold for the initial seeds.
- hysteresis_thresholdfloat or None
The hysteresis threshold to extend the initial seeds. If None, no hysteresis thresholding is performed.
- seedsarray or None
The seeds from which to start the hysteresis thresholds
- backgroundarray or None
Exclude this area from the hysteresis thresholding.
Returns
- sinkarray
Thresholded output.