79440239

Date: 2025-02-14 18:24:29
Score: 1
Natty:
Report link

Libraries such as OpenCV, ImageIO etc. support loading of radiance RGBE (.hdr).

For example using OpenCV:

import cv2

# IMREAD_ANYDEPTH is needed because even though the data is stored in 8-bit channels
# when it's read into memory it's represented at a higher bit depth
img = cv2.imread(hdr_path, flags=cv2.IMREAD_ANYDEPTH)

Reference:

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ivan Tishchenko