class_docstr: Defines a generic Scribbles Likelihood based segmentor infertask
class_docstr_tok: ["Defines","a","generic","Scribbles","Likelihood","based","segmentor","infertask"]
code: def __init__(
      self,
      dimension=3,
      description="A post processing step with likelihood + GraphCut for Generic segmentation",
      intensity_range=(-300, 200, 0.0, 1.0, True),
      pix_dim=(2.5, 2.5, 5.0),
      lamda=1.0,
      sigma=0.1,
      labels=None,
      config=None,
  ):
      if config:
          config.update({"lamda": lamda, "sigma": sigma})
      else:
          config = {"lamda": lamda, "sigma": sigma}
      super().__init__(
          path=None,
          network=None,
          labels=labels,
          type=InferType.SCRIBBLES,
          dimension=dimension,
          description=description,
          config=config,
      )
      self.intensity_range = intensity_range
      self.pix_dim = pix_dim
      self.lamda = lamda
      self.sigma = sigma
  
      # set default scribbles labels
      self.scribbles_bg_label = (
          2 if not self.labels else len(self.labels) + 1
      )
      self.scribbles_fg_label = (
          3 if not self.labels else len(self.labels) + 2
      )
  
file_path: MONAILabel/monailabel/scribbles/infer.py
imports: from monai.transforms import Compose, EnsureChannelFirstd, LoadImaged, ScaleIntensityRanged, Spacingd
  from monailabel.interfaces.tasks.infer_v2 import InferType
  from monailabel.scribbles.transforms import AddBackgroundScribblesFromROId, ApplyGraphCutOptimisationd, MakeISegUnaryd, MakeLikelihoodFromScribblesGMMd, MakeLikelihoodFromScribblesHistogramd
  from monailabel.tasks.infer.basic_infer import BasicInferTask
  from monailabel.transform.post import BoundingBoxd, Restored
label_desc: Use image node_id 1 to create a new ScribblesLikelihoodInferTask object from inherited base classes: BasicInferTask with example: obj = ScribblesLikelihoodInferTask(dimension, description, intensity_range, pix_dim, lamda, sigma, labels, config)