cyto_dl.image.transforms.project module#

class cyto_dl.image.transforms.project.MaxProjectd(keys: list | str, projection_dim: int = 1, allow_missing_keys: bool = False)[source]#

Bases: Transform

Monai-style transform to take max projection of an image.

Parameters:
  • keys (Union[list, str]) – keys to apply max projection

  • projection_dim (int=1) – index into NCZYX to compute projection across

  • allow_missing_keys (bool=False) – Whether to raise error if specified key is missing