@@ -369,7 +369,6 @@ def __init__(
369369 keys : KeysCollection ,
370370 offsets : tuple [float , float ] | float ,
371371 safe : bool = False ,
372- channel_wise : bool = False ,
373372 factor_key : str | None = None ,
374373 meta_keys : KeysCollection | None = None ,
375374 meta_key_postfix : str = DEFAULT_POST_FIX ,
@@ -384,8 +383,6 @@ def __init__(
384383 if single number, offset value is picked from (-offsets, offsets).
385384 safe: if `True`, then do safe dtype convert when intensity overflow. default to `False`.
386385 E.g., `[256, -12]` -> `[array(0), array(244)]`. If `True`, then `[256, -12]` -> `[array(255), array(0)]`.
387- channel_wise: if True, calculate on each channel separately. Please ensure
388- that the first dimension represents the channel of the image if True.
389386 factor_key: if not None, use it as the key to extract a value from the corresponding
390387 metadata dictionary of `key` at runtime, and multiply the random `offset` to shift intensity.
391388 Usually, `IntensityStatsd` transform can pre-compute statistics of intensity values
@@ -412,7 +409,7 @@ def __init__(
412409 if len (self .keys ) != len (self .meta_keys ):
413410 raise ValueError ("meta_keys should have the same length as keys." )
414411 self .meta_key_postfix = ensure_tuple_rep (meta_key_postfix , len (self .keys ))
415- self .shifter = RandShiftIntensity (offsets = offsets , safe = safe , channel_wise = channel_wise , prob = 1.0 )
412+ self .shifter = RandShiftIntensity (offsets = offsets , safe = safe , prob = 1.0 )
416413
417414 def set_random_state (
418415 self , seed : int | None = None , state : np .random .RandomState | None = None
0 commit comments