MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/transforms/intensity/array.py:1948–1951  ·  view source on GitHub ↗
(self, alpha: float = 0.1)

Source from the content-addressed store, hash-verified

1946 backend = [TransformBackends.TORCH, TransformBackends.NUMPY]
1947
1948 def __init__(self, alpha: float = 0.1) -> None:
1949 if alpha > 1 or alpha < 0:
1950 raise ValueError("alpha must take values in the interval [0, 1].")
1951 self.alpha = alpha
1952
1953 def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor:
1954 img = convert_to_tensor(img, track_meta=get_track_meta())

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected