Args: keys: keys of the corresponding items to be transformed. See also: :py:class:`monai.transforms.compose.MapTransform` allow_missing_keys: don't raise exception if key is missing.
(self, keys: KeysCollection, allow_missing_keys: bool = False)
| 617 | backend = ToPIL.backend |
| 618 | |
| 619 | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = False) -> None: |
| 620 | """ |
| 621 | Args: |
| 622 | keys: keys of the corresponding items to be transformed. |
| 623 | See also: :py:class:`monai.transforms.compose.MapTransform` |
| 624 | allow_missing_keys: don't raise exception if key is missing. |
| 625 | """ |
| 626 | super().__init__(keys, allow_missing_keys) |
| 627 | self.converter = ToPIL() |
| 628 | |
| 629 | def __call__(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]: |
| 630 | d = dict(data) |
no test coverage detected