CONTRIBUTED CODE:

FAST TONE MAPPING ALGORITHM


 

The Fast tone mapping algorithm developed and contributed by Duan [11] can be downloaded from clicking the link below.

Fast Tone mapping Source code Link

 

This is in Microsoft Visual C. This program currently can read only .raw files and you need to specify the Width and Height. You can dowload HDRShop online, which can open HDRI files with extension like .hdr. Then you save the file to raw file as indicated when you click "save as" in the software. With the saved file, you can run these codes.

 

A typical input in the command line looks like the following:

--------------------------------------------------------------------------------------------------------------------------

D:\Fast Tone Mapping\Release>fast_hdri

***********The information of image to be processed***********

Please input file name

bigFogMap.raw

Please input the width of the image

751

Please input the height of the image

1130

Please input the parameter for luminance component

0.5

Please input the parameter for log offset

0.01

Please input the parameter for Gamma

0.8

Please input the output file name

bigFogMap_tm.raw

Gamma=0.800000

 

max=1270.432007,min=0.097643069923

 

Computing.......

 the time used to compute the image is 0.437000 s

 

Writing data..

 

------------------------------------------------------------------------------------------------------------

References and Links

[1] http://dragon.larc.nasa.gov/retinex/background/retpubs.html

[2] http://books.elsevier.com/companions/0125852630/hdri/html/hdri.html
.

[3] www.umsl.edu/~sj550/myweb/lic_retinex_reinhard.htm

[4] http://www.cygwin.com/

[5] http://www.mpi-inf.mpg.de/resources/pfstools/

[6] http://www.mpi-inf.mpg.de/resources/tmo/

[7] http://www.cis.rit.edu/people/faculty/fairchild/PDFs/PAP18.pdf

M.D. Fairchild and G.M. Johnson, "The iCAM framework for image appearance, image differences, and image quality," Journal of Electronic Imaging, 13 126-138 (2004)

[8] http://www.nr.com/

[9] http://www.cis.rit.edu/mcsl/icam/pub/icam_c_code.zip

[10] http://www.cs.northwestern.edu/~jet/Publications/Tumblin_EGSR2003paper.pdf

Choudhury, P., Tumblin, J., "The Trilateral Filter for High Contrast Images and Meshes," Proc. of the Eurographics Symposium on Rendering, Per. H. Christensen and Daniel Cohen eds., pp. 186-196, 2003.

[11] http://www.cs.nott.ac.uk/%7Eqiu/hdri/PG05/PG05.html