(
self,
keys: KeysCollection,
gamma: float,
invert_image: bool = False,
retain_stats: bool = False,
allow_missing_keys: bool = False,
)
| 961 | backend = AdjustContrast.backend |
| 962 | |
| 963 | def __init__( |
| 964 | self, |
| 965 | keys: KeysCollection, |
| 966 | gamma: float, |
| 967 | invert_image: bool = False, |
| 968 | retain_stats: bool = False, |
| 969 | allow_missing_keys: bool = False, |
| 970 | ) -> None: |
| 971 | super().__init__(keys, allow_missing_keys) |
| 972 | self.adjuster = AdjustContrast(gamma, invert_image, retain_stats) |
| 973 | |
| 974 | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]: |
| 975 | d = dict(data) |
nothing calls this directly
no test coverage detected