PFStmo :: fattal02


Gradient Domain High Dynamic Range Compression
R. Fattal, D. Lischinski, and M. Werman
In ACM Transactions on Graphics, 2002

Web page:

Tone mapping of HDR images

Stanford Memorial Church
HDR image courtesy of Paul Debevec

Command line to generate this result:
$ pfsin memorial.hdr | pfstmo_fattal02 -b 0.75 | \
  pfsgamma -g 2.2 | pfsout memorial_fattal02.png
Source: memorial.hdr
Result: memorial_fattal02.png

Tone mapping of HDR video

Tunnel in Saarbruecken
Grzegorz Krawczyk © 2004

Command line to generate this result:
$ pfsinexr sb%04d.exr | pfstmo_fattal02 -b 0.75 | \
  pfsgamma -g 2.2 | \
  pfsoutffmpeg -qscale 4 -s 320x240 sbtour_fattal02.avi
Result: sbtour_fattal02.avi


The implementation of this algorithm is a part of pfstmo package and is available for download with complete source code. All comments and suggestions are welcome.

Please report bugs and comments to Grzegorz Krawczyk (krawczyk [at]

back to pfstmo project page
Last modified: Tue Jun 21 10:23:12 CEST 2005