HDRUNet icon indicating copy to clipboard operation
HDRUNet copied to clipboard

get the HDR image in .hdr or .exr format

Open Yliu724 opened this issue 3 years ago • 4 comments

Thanks for your impressive work!

I have read your code and generate some results using the test.py file. It seems that the reconstructed hdr image is saved as uint16 png format, and in the tonemapped_visualization.py, the hdr image is tone mapped to LDR image for visualization. Am I right? And I also try to directly save the sr_img to .hdr or .exr format using the following code: cv2.imwrite('hdr_img_path.hdr', sr_img) The result seems good. Can I do so to get the HDR image in .hdr or .exr format instead of uint16 png format?

Thank you~

Yliu724 avatar Aug 22 '21 12:08 Yliu724

@Yliu724 It's OK to do so, but it is better to perform gamma inversion to obtain linear image before saving in a .hdr or .exr format.

chxy95 avatar Aug 22 '21 14:08 chxy95

Get it. Thanks for your reply.


发件人: XyChen @.> 发送时间: 2021年8月22日 22:45 收件人: chxy95/HDRUNet @.> 抄送: LIU Yue @.>; Mention @.> 主题: Re: [chxy95/HDRUNet] get the HDR image in .hdr or .exr format (#14)

This email originated from outside of City University of Hong Kong. Do not respond, click links, or open attachments unless you recognize the sender and know that the content is safe.

@Yliu724https://github.com/Yliu724 It's OK to do so, but it is better to perform gamma inversion to obtain linear image before saving in a .hdr or .exr format.

― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/chxy95/HDRUNet/issues/14#issuecomment-903279748, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOKIDSTJAMLIGOTWNOESRODT6EEP5ANCNFSM5CS437EQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

Yliu724 avatar Aug 23 '21 02:08 Yliu724

@chxy95 please, what operation gamma inversion is? thanks.

sunyclj avatar Mar 02 '22 11:03 sunyclj

@sunyclj you can refer to this page for an approximate inversion of gamma correction. https://forum.image.sc/t/how-to-reverse-gamma-correction-from-a-image/9430

chxy95 avatar Mar 02 '22 12:03 chxy95