import cv2
import numpy as np
b = np.ones((512,1024), dtype=float)
b = b*100
cv2.imwrite('D:/u.hdr',b)
img = cv2.imread('D:/u.hdr',-1)
c = np.hstack(img)
print(c)

import cv2
import numpy as np
b = np.ones((512,1024), dtype=float)
b = b*100
cv2.imwrite('D:/u.hdr',b)
img = cv2.imread('D:/u.hdr',-1)
c = np.hstack(img)
print(c)