dmarnerides / hdr-expandnet

Training and inference code for ExpandNet
Other
201 stars 40 forks source link

Can expanded output be in .exr format instead of .hdr format? or need more details on .hdr #6

Closed ittim4 closed 5 years ago

ittim4 commented 5 years ago
  1. Would be great if output can be specified in .exr or other format instead of .hdr ; is it possible?
  2. Curious - how can I learn more about the details of this ".hdr" format e.g. precision per pixel? does it store linear fp16? whats relationship of pixel value and nits? etc. Also, would be great if you can suggest any free image viewer to view .hdr file?
  3. If only ".hdr" supported, can you recommended a tool to convert say to .exr or other format(e.g. tiff)? Or even better - eventually, trying to understand a way to convert sequence of .hdr (or other format) in say HEVC Main 10 video (.mp4) sequence to be able to view it on HDR monitor. Any suggestions?
dmarnerides commented 5 years ago

Hi

  1. Yes, I just added a flag --use_exr which will save the predicted images in .exr format
  2. The .hdr format is essentially the RGBE radiance format by Greg Ward. It saves each colour as 8 bit, with an extra 8bit exponent (E channel). More information here (paywall), here and here. To view the files you can use HDRShop or Tev which also supports EXR, or the online OpenHDR viewer.
  3. Doing video is a bit more involved and I'm not sure which would be the right format / codec etc to do this. If you have any experience with it please share and feel free to do a pull request.
ittim4 commented 5 years ago

Thanks a lot dmarnerides for adding the flag! Thanks for the details on points 2 and 3 as well. This is so helpful! (P.S: Sorry to respond late, was away for last week)