hydrax.image.convert_balanced_to_frac_chw#

hydrax.image.convert_balanced_to_frac_chw(image: ndarray, scale: float = 1.0) None#

Converts an image data array in balanced [-scale, scale] HWC format to a fractional [0.0, 1.0] 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.