1Cameratopam User Manual(0) Cameratopam User Manual(0)
2
3
4
6 cameratopam - convert raw camera image to PAM
7
8
10 cameratopam
11
12 [input_file_name]
13
14 [-identify_only] [-quick_interpolate] [-half_size] [-four_color_rgb]
15 [-document_mode] [-balance_auto] [-balance_camera] [-red_scale=float]
16 [-blue_scale=float] [-brightness=fraction] [-no_clip_color] [-rgb]
17 [-secondary] [-linear] [-verbose]
18
19
20
22 This program is part of Netpbm(1).
23
24 cameratopam converts from any of dozens of raw camera image formats to
25 PAM.
26
27 Digital still cameras often can produce images in a special raw format
28 in addition to something more standard such as TIFF or JFIF (JPEG).
29 Software supplied with the camera allows you to manipulate the image
30 using information which is lost when the camera converts to the common
31 format. A particular camera model often has a unique raw format.
32
33
34
35
37 All options can be abbreviated to their shortest unique prefix. You
38 may use two hyphens instead of one to designate an option. You may use
39 either white space or an equals sign between an option name and its
40 value.
41
42
43
44 -identify_only
45 Report to Standard Error the format of the input image but don't
46 generate an output image. Program fails if it cannot recognize
47 the format.
48
49
50 -verbose
51 Report to Standard Error details of the processing.
52
53
54 -quick_interpolate
55 Use simple bilinear interpolation for quick results. The
56 default is to use a slow, high-quality adaptive algorithm.
57
58
59 -half_size
60 Half-size the output image. Instead of interpolating, reduce
61 each 2x2 block of sensors to one pixel. Much faster than
62 -quick_interpolate.
63
64
65 -four_color_rgb
66 Interpolate RGB as four colors. This causes a slight loss of
67 detail, so use this only if you see false 2x2 mesh patterns in
68 blue sky.
69
70
71 -document_mode
72 Show the raw data as a grayscale image with no interpolation.
73 This is good for photographing black and white documents.
74
75
76 -balance_auto
77 Automatic color balance. The default is to use a fixed color
78 balance based on a white card photographed in sunlight.
79
80
81 -balance_camera
82 Use the color balance specified by the camera. If cameratopam
83 can't find this, it prints a warning and reverts to the default.
84
85
86 -red_scale=float
87
88 -blue_scalefloat
89 Further adjust the color balance by multiplying the red and blue
90 channels by these values. Both default to 1.0.
91
92
93 -brightness=float
94 Change the output brightness. Default is 1.0.
95
96
97 -no_clip_color
98 By default, cameratoapm clips all colors to prevent pink hues in
99 the highlights. Combine this option with -brightness=0.25 to
100 leave the image data completely unclipped.
101
102
103 -rgb Write raw camera colors to the output file. By default, camera‐
104 toapm converts to sRGB colorspace.
105
106
107 -secondary
108 For cameras based on the Fuji Super CCD SR, this option causes
109 cameratopam to use the secondary sensors, in effect underexpos‐
110 ing the image by four stops to reveal detail in the highlights.
111 cameratopam silently ignores this option for all other cameras.
112
113
114 -linear
115 This option causes cameratopam to generate a variation on PAM
116 that has 'linear' color samples. In true PAM, each sample in
117 the image raster is gamma-corrected; i.e. it is essentially pro‐
118 portional to brightness. With the linear option, cameratopam
119 generates an image in which the samples are instead proportional
120 to light intensity.
121
122 Without -linear, the image maxval is 255, so the image contains
123 one byte per sample. With -linear, the maxval is 65535, so the
124 image contains two bytes per sample.
125
126 Without -linear, cameratopam uses a 99th percentile white point.
127 With -linear, it doesn't. I don't know what that means.
128
129
130
131
132
134 411toppm(1), pamflip(1), pam(1),
135
136
138 cameratopam was new in Netpbm 10.28 (June 2005).
139
140 It was derived from the program dcraw by Dave Coffin
141 ⟨http://www.cybercom.net/~dcoffin/dcraw/⟩ , by Bryan Henderson in April
142 2005. Bryan replaced the part that generates the Netpbm output image
143 and removed the Adobe Photoshop output function. Bryan changed the
144 command syntax and and made other small changes to make the program
145 consistent with Netpbm. He also split the source code into manageable
146 pieces (dcraw has a single 5000 line source file).
147
148
149
150netpbm documentation 12 April 2005 Cameratopam User Manual(0)