i wanted to convert .hdr file to visible format I used the Photomatrix pro and the result was following
i was satisfied with the result but i wanted to convert this hdr file using python code as well so i used following code
from pathlib import Path
import cv2
current_folder = Path().resolve()
filename = "hdr"
hdr_path = str(Path(current_folder, filename + ".hdr"))
img = cv2.imread(hdr_path,flags=cv2.IMREAD_ANYDEPTH)
import matplotlib.pyplot as plt
plt.imshow(img)
plt.axis('off')
result_path = Path(current_folder, filename + '.png')
plt.savefig(result_path)
But the result was following
I want to convert the .hdr image with full color which is written on the file.