cyto_dl.image.transforms.add_meta module#

class cyto_dl.image.transforms.add_meta.AddMeta(image_key: str, meta_keys: Sequence[str], delete: bool = False)[source]#

Bases: Transform

Transform to update image key metadata with new keys.

Parameters:
  • image_key (str) – Key in batch dictionary for image data. Must be a MetaTensor

  • meta_keys (Sequence[str]) – List of keys to add to image metadata

  • delete (bool) – If True, delete the original meta_keys from the image metadata after they have been added as metadata