darsia.DynamicThresholdModel#

class DynamicThresholdModel(method=None, threshold_lower=None, threshold_upper=None, labels=None, key='', **kwargs)[source]#

Bases: StaticThresholdModel

Class for dynamic thresholding.

Constructor of DynamicThresholdModel.

Parameters:
methodstr

Method name.

threshold_lowerfloat or list of float

Lower threshold value boundary.

threshold_upperfloat or list of float

Upper threshold value boundary.

labelsarray

Labeled domain.

keystr

Prefix for options.

Methods

calibrate(img, mask)

Adapt threshold values using a dynamic strategies.

update_model_parameters(*args)

calibrate(img, mask)[source]#

Adapt threshold values using a dynamic strategies.