imageio.imwrite('testout.jpg', np.squeeze(ldr))
cv2.imwrite('testout.jpg', np.squeeze(ldr))
Result:
imageio:
cv2:
Solution:
You need to multiply it by 255 to get the correct range.
cv2.imwrite('testout.jpg', np.squeeze(ldr)*255.0)
imageio.imwrite('testout.jpg', np.squeeze(ldr))
cv2.imwrite('testout.jpg', np.squeeze(ldr))
Result:
imageio:
cv2:
Solution:
You need to multiply it by 255 to get the correct range.
cv2.imwrite('testout.jpg', np.squeeze(ldr)*255.0)