hydrax.image.convert_frac_to_balanced_chw#
- hydrax.image.convert_frac_to_balanced_chw(image: ndarray, scale: float = 1.0) None #
Converts an image data array in fractional
[0.0, 1.0]
CHW format to a balanced[-scale, scale]
representation in-place.- Parameters:
image – Image data to convert. Any number of leading batch dimensions may be present. The alpha channel, if present, is not modified.
scale – Scale of the balanced representation. The default is
1.0
.