cyto_dl.image.transforms.clip module#

class cyto_dl.image.transforms.clip.Clip(low: float = 0.01, high: float = 99.99, percentile=True)[source]#

Bases: Transform

Transform for clipping image intensities based on absolute or percentile values.

Parameters:
  • low (float) – lower bound for clipping

  • high (float) – upper bound for clipping

  • percentile (bool) – whether to use percentile or absolute values for clipping

class cyto_dl.image.transforms.clip.Clipd(keys: str, low: float = 0.01, high: float = 99.99, percentile=True, allow_missing_keys: bool = False, per_channel=True)[source]#

Bases: Transform

Dictionary Transform for clipping image intensities based on absolute or percentile values.

Parameters:
  • keys (str) – name of images to resize

  • low (float) – lower bound for clipping

  • high (float) – upper bound for clipping

  • percentile (bool) – whether to use percentile or absolute values for clipping

  • allow_missing_keys (bool) – whether to fail if provided keys are missing