Debian Codegraph @

userguide/cameratopam.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
2 <html><head><title>Cameratopam User Manual</title></head>
3 <body>
4 <h1>cameratopam</h1>
5 Updated: 12 April 2005
6 <br>
7 <a href="#index">Table Of Contents</a>
8
9 <h2>NAME</h2>
10 cameratopam - convert raw camera image to PAM
11
12 <h2 id="synopsis">SYNOPSIS</h2>
13
14 <b>cameratopam</b>
15
16 [<i>input_file_name</i>]
17
18 [<b>-identify_only</b>]
19 [<b>-quick_interpolate</b>]
20 [<b>-half_size</b>]
21 [<b>-four_color_rgb</b>]
22 [<b>-document_mode</b>]
23 [<b>-balance_auto</b>]
24 [<b>-balance_camera</b>]
25 [<b>-red_scale=</b><i>float</i>]
26 [<b>-blue_scale=</b><i>float</i>]
27 [<b>-brightness=</b><i>fraction</i>]
28 [<b>-no_clip_color</b>]
29 [<b>-rgb</b>]
30 [<b>-secondary</b>]
31 [<b>-linear</b>]
32 [<b>-verbose</b>]
33
34
35 <p>All options can be abbreviated to their shortest unique prefix. You
36 may use two hyphens instead of one to designate an option. You may
37 use either white space or an equals sign between an option name and
38 its value.
39
40 <h2 id="description">DESCRIPTION</h2>
41
42 <p>This program is part of <a href="index.html">Netpbm</a>.
43
44 <p><b>cameratopam</b> converts from any of dozens of raw camera image
45 formats to PAM.
46
47 <p>Digital still cameras often can produce images in a special raw
48 format in addition to something more standard such as TIFF or JFIF
49 (JPEG). Software supplied with the camera allows you to manipulate
50 the image using information which is lost when the camera converts to
51 the common format. A particular camera model often has a unique raw
52 format.
53
54
55
56 <h2 id="options">OPTIONS</h2>
57
58 <p>In addition to the options common to all programs based on libnetpbm
59 (most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
60 Common Options</a>), <b>cameratopam</b> recognizes the following
61 command line options:
62
63 <dl>
64 <dt><b>-identify_only</b>
65
66 <dd>Report to Standard Error the format of the input image but don't
67 generate an output image. Program fails if it cannot recognize the
68 format.
69
70 <dt><b>-verbose</b>
71
72 <dd>Report to Standard Error details of the processing.
73
74 <dt><b>-quick_interpolate</b>
75
76 <dd>Use simple bilinear interpolation for quick results. The default
77 is to use a slow, high-quality adaptive algorithm.
78
79 <dt><b>-half_size</b>
80
81 <dd>Half-size the output image. Instead of interpolating, reduce
82 each 2x2 block of sensors to one pixel. Much faster than
83 <b>-quick_interpolate</b>.
84
85 <dt><b>-four_color_rgb</b>
86
87 <dd>Interpolate RGB as four colors. This causes a slight loss of
88 detail, so use this only if you see false 2x2 mesh patterns in blue
89 sky.
90
91 <dt><b>-document_mode</b>
92
93 <dd>Show the raw data as a grayscale image with no interpolation.
94 This is good for photographing black and white documents.
95
96 <dt><b>-balance_auto</b>
97
98 <dd>Automatic color balance. The default is to use a fixed
99 color balance based on a white card photographed in sunlight.
100
101 <dt><b>-balance_camera</b>
102
103 <dd>Use the color balance specified by the camera. If
104 <b>cameratopam</b> can't find this, it prints a warning and reverts to
105 the default.
106
107 <dt><b>-red_scale=</b><i>float</i>
108 <dt><b>-blue_scale</b><i>float</i>
109
110 <dd>Further adjust the color balance by multiplying the red and blue
111 channels by these values. Both default to 1.0.
112
113 <dt><b>-brightness=</b><i>float</i>
114
115 <dd>Change the output brightness. Default is 1.0.
116
117 <dt><b>-no_clip_color</b>
118
119 <dd>By default, <b>cameratoapm</b> clips all colors to prevent pink
120 hues in the highlights. Combine this option with
121 <b>-brightness=0.25</b> to leave the image data completely unclipped.
122
123 <dt><b>-rgb</b>
124
125 <dd>Write raw camera colors to the output file. By default,
126 <b>cameratoapm</b> converts to sRGB colorspace.
127
128 <dt><b>-secondary</b>
129
130 <dd>For cameras based on the Fuji Super CCD SR, this option causes
131 <b>cameratopam</b> to use the secondary sensors, in effect
132 underexposing the image by four stops to reveal detail in the
133 highlights. <b>cameratopam</b> silently ignores this option for all
134 other cameras.
135
136 <dt><b>-linear</b>
137
138 <dd>This option causes <b>cameratopam</b> to generate a variation on
139 PAM that has "linear" color samples. In true PAM, each
140 sample in the image raster is gamma-corrected; i.e. it is essentially
141 proportional to brightness. With the <b>linear</b> option,
142 <b>cameratopam</b> generates an image in which the samples are instead
143 proportional to light intensity.
144
145 <p>Without <b>-linear</b>, the image maxval is 255, so the image
146 contains one byte per sample. With <b>-linear</b>, the maxval is
147 65535, so the image contains two bytes per sample.
148
149 <p>Without <b>-linear</b>, <b>cameratopam</b> uses a 99th percentile
150 white point. With <b>-linear</b>, it doesn't. I don't know what that
151 means.
152
153 </dl>
154
155
156 <h2 id="seealso">SEE ALSO</h2>
157
158 <a href="411toppm.html">411toppm</a>,
159 <a href="pamflip.html">pamflip</a>,
160 <a href="pam.html">pam</a>,
161
162 <h2 id="history">HISTORY</h2>
163
164 <p><b>cameratopam</b> was new in Netpbm 10.28 (June 2005).
165
166 <p>It was derived from the program <a
167 href="https://dechifro.org/dcraw/"><b>dcraw</b> by Dave
168 Coffin</a>, by Bryan Henderson in April 2005. Bryan replaced the part
169 that generates the Netpbm output image and removed the Adobe Photoshop
170 output function. Bryan changed the command syntax and made other
171 small changes to make the program consistent with Netpbm. He also
172 split the source code into manageable pieces (<b>dcraw</b> had a
173 single 5000 line source file).
174
175
176 <hr>
177 <h2 id="index">Table Of Contents</h2>
178 <ul>
179 <li><a href="#synopsis">SYNOPSIS</a>
180 <li><a href="#description">DESCRIPTION</a>
181 <li><a href="#options">OPTIONS</a>
182 <li><a href="#seealso">SEE ALSO</a>
183 <li><a href="#history">HISTORY</a>
184 </ul>
185 </body>
186 </html>