1pfstmo_fattal02(1) General Commands Manual pfstmo_fattal02(1)
2
3
4
6 pfstmo_fattal02 - Gradient domain high dynamic range compression
7
9 pfstmo_fattal02 [--alpha <val>] [--beta <val>] [--saturation <val>]
10 [--noise <val>] [--verbose] [--help]
11
13 This command implements a tone mapping operator as described in:
14
15 Gradient Domain High Dynamic Range Compression R. Fattal, D. Lischin‐
16 ski, and M. Werman In ACM Transactions on Graphics, 2002.
17
18 With respect to the original paper, this program provides additional
19 parameter which limits the amplification of noise. The noise is often
20 starkly amplified because of division by zero in one of the equations
21 in the paper. Extension contributed by Przemyslaw Bazarnik.
22
23 Results of this TMO can be improved by using a gamma correction.
24
26 --alpha <val>, -a <val>
27
28 Set alpha parameter. <val> defines the threshold gradient value
29 (luminance differents of adjacent pixels) below which the gradi‐
30 ents are amplified (detail enhancement) and above which the gra‐
31 dients are attenuated (global contrast reduction).
32 Suggested range is 1 to 0.0001. It is reasonable to change
33 parameters by orders of magnitude, so for instance trying 0.1,
34 0.01, 0.001 etc. (see paper for details).
35
36 --beta <val>, -b <val>
37
38 Set beta parameter. <val> sets the strength of gradient (local
39 contrast) modification. Suggested range is 0.8 to 0.96 (see
40 paper for details). Value of 1 does not change contrasts, val‐
41 ues above 1 reverse the effect: global contrast is stretched and
42 details are attenuated. Values below 0.5 lead to very strong
43 amplification of small contrast, so consider using --noise
44 parameter close to 'alpha' value to prevent noise.
45
46 --saturation <val>, -s <val>
47
48 Amount of color saturation. Suggested range is 0.4 to 0.8.
49 Default value: 0.6.
50
51 --noise <val>, -n <val>
52
53 Reduces gradient amplification value for gradients close to 0
54 and reduces noise in the result. <val> defines gradient value
55 (luminance differents of adjacent pixels) which is treated as
56 noise. Suggested range is 0.0 to the value of alpha. Default
57 value calculated based on alpha: 0.001*alpha.
58
59 --verbose
60
61 Print additional information during program execution.
62
63 --help
64
65 Print list of command line options.
66
68 pfsin memorial.hdr | pfstmo_fattal02 -v | pfsgamma -g 2.2 | pfsout
69 memorial.png
70
71 Tone map image and save it in png format.
72
74 pfsin(1) pfsout(1) pfsview(1)
75
77 Please report bugs and comments on implementation to Grzegorz Krawczyk
78 <krawczyk@mpi-sb.mpg.de>.
79
80
81
82 pfstmo_fattal02(1)