[docs]classMultilabelSegmentationBinarization(Algorithm):"""Implementation of a binarization algorithm for multilabel segmentation. Algorithm performs thresholding of each prediction's channel separately to create rasters based on specified by the user classes' thresholds."""
[docs]classParameters(Algorithm.Parameters):"""Parameters class for MultilabelSegmentationBinarization objects."""eyeball_threshold:float=Field(...,ge=0.0,le=1.0)iris_threshold:float=Field(...,ge=0.0,le=1.0)pupil_threshold:float=Field(...,ge=0.0,le=1.0)eyelashes_threshold:float=Field(...,ge=0.0,le=1.0)
__parameters_type__=Parametersdef__init__(self,eyeball_threshold:float=0.5,iris_threshold:float=0.5,pupil_threshold:float=0.5,eyelashes_threshold:float=0.5,callbacks:List[Callback]=[],)->None:"""Assign parameters. Args: eyeball_threshold (float, optional): Eyeball class threshold. Defaults to 0.5. iris_threshold (float, optional): Iris class threshold. Defaults to 0.5. pupil_threshold (float, optional): Pupil class threshold. Defaults to 0.5. eyelashes_threshold (float, optional): Eyelashes class threshold. Defaults to 0.5. callbacks (List[Callback], optional): List of algorithm callbacks. Defaults to []. """super().__init__(eyeball_threshold=eyeball_threshold,iris_threshold=iris_threshold,pupil_threshold=pupil_threshold,eyelashes_threshold=eyelashes_threshold,callbacks=callbacks,)