Monday, April 8, 2013

Convert HDR files to EXR and tonemap using pfstools

Convert all .hdr files to .exr using pfstools. This will replace the hdr extension to exr.

$ for img in *.hdr; do pfsin ${img} | pfsout ${img%%.hdr}.exr; done


Similarly, tonemap multiple HDR files using a variety of tonemapping operations:

$ for img in *.exr; do pfsin ${img} | pfstmo_mantiuk08|pfsout ${img%%.exr}.ppm; done

pfstmo_mantiuk08 is one of many available tonemap operations available in pfstools.

No comments:

Post a Comment