hydrax.image.convert_frac_to_balanced_hwc#
- hydrax.image.convert_frac_to_balanced_hwc(image: ndarray, scale: float = 1.0) None#
Converts an image data array in fractional
[0.0, 1.0]HWC 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.