-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get the HDR image in .hdr or .exr format #14
Comments
@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. |
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.
@Yliu724<https://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 GitHub<#14 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOKIDSTJAMLIGOTWNOESRODT6EEP5ANCNFSM5CS437EQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
@chxy95 please, what operation gamma inversion is? thanks. |
@sunyclj you can refer to this page for an approximate inversion of gamma correction. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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~
The text was updated successfully, but these errors were encountered: