1pfsclamp(1) General Commands Manual pfsclamp(1)
2
3
4
6 pfsclamp - Clamp color and luminance channel values to be within the
7 specified range
8
10 pfsclamp [--min <minimum>] [--max <maximum>] [--percentile] [--zero]
11 [--rgb]
12
14 Use this command to clamp values of luminance and color channels to be
15 within the specified range. I.e. if a value in the channel is above the
16 specified maximum or below specified minimum, set the value to either
17 minimum or maximum.
18
19 The command operates directly on XYZ channels.
20
22 --min <val>
23
24 Lower bound for clamping. Default value: 0.0001 (10^-4)
25
26
27 --max <val>
28
29 Upper bound for clamping. Default value: 100000000 (10^8)
30
31
32 --percentile, -p
33
34 Treat given min and max values as a percentile.
35
36
37 --zero, -z
38
39 Set values out of clamping range to zero, instead of setting to
40 specified maximum and minimum.
41
42
43 --rgb
44
45 Perform clamping in RGB space.
46
47
49 pfsin memorial.hdr | pfsclamp | pfsout memorial_cl.hdr
50
51 Remove possible out-of-range values, for examples zeros, from
52 memorial image.
53
54
55 pfsin memorial.hdr | pfsclamp --max 0.95 -p | pfsout memorial_cl.hdr
56
57 Remove 5% of the brightest pixels from the original image.
58
60 pfsin(1) pfsout(1)
61
63 Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-
64 sb.mpg.de> and Grzegorz Krawczyk <krawczyk@mpi-sb.mpg.de>.
65
66
67
68 pfsclamp(1)