summary refs log tree commit diff
path: root/cameratopam.html
blob: bab5808d8ae6a8660c27962a8eaf4cfcb631df68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Cameratopam User Manual</title></head>
<body>
<h1>cameratopam</h1>
Updated: 12 April 2005
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>
cameratopam - convert raw camera image to PAM

<h2 id="synopsis">SYNOPSIS</h2>

<b>cameratopam</b>

[<i>input_file_name</i>]

[<b>-identify_only</b>]
[<b>-quick_interpolate</b>]
[<b>-half_size</b>]
[<b>-four_color_rgb</b>]
[<b>-document_mode</b>]
[<b>-balance_auto</b>]
[<b>-balance_camera</b>]
[<b>-red_scale=</b><i>float</i>]
[<b>-blue_scale=</b><i>float</i>]
[<b>-brightness=</b><i>fraction</i>]
[<b>-no_clip_color</b>]
[<b>-rgb</b>]
[<b>-secondary</b>]
[<b>-linear</b>]
[<b>-verbose</b>]


<p>All options can be abbreviated to their shortest unique prefix.  You
may use two hyphens instead of one to designate an option.  You may
use either white space or an equals sign between an option name and
its value.

<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>cameratopam</b> converts from any of dozens of raw camera image
formats to PAM.  

<p>Digital still cameras often can produce images in a special raw
format in addition to something more standard such as TIFF or JFIF
(JPEG).  Software supplied with the camera allows you to manipulate
the image using information which is lost when the camera converts to
the common format.  A particular camera model often has a unique raw
format.



<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>cameratopam</b> recognizes the following
command line options:

<dl>
<dt><b>-identify_only</b>

<dd>Report to Standard Error the format of the input image but don't
generate an output image.  Program fails if it cannot recognize the
format.

<dt><b>-verbose</b>

<dd>Report to Standard Error details of the processing.

<dt><b>-quick_interpolate</b>

<dd>Use simple bilinear interpolation for quick results.  The default
is to use a slow, high-quality adaptive algorithm.

<dt><b>-half_size</b>

<dd>Half-size the output image.  Instead of interpolating, reduce
each 2x2 block of sensors to one pixel.  Much faster than
<b>-quick_interpolate</b>.

<dt><b>-four_color_rgb</b>

<dd>Interpolate RGB as four colors.  This causes a slight loss of
detail, so use this only if you see false 2x2 mesh patterns in blue
sky.

<dt><b>-document_mode</b>

<dd>Show the raw data as a grayscale image with no interpolation.
This is good for photographing black and white documents.

<dt><b>-balance_auto</b>

<dd>Automatic color balance.  The default is to use a fixed
color balance based on a white card photographed in sunlight.

<dt><b>-balance_camera</b>

<dd>Use the color balance specified by the camera.  If
<b>cameratopam</b> can't find this, it prints a warning and reverts to
the default.

<dt><b>-red_scale=</b><i>float</i>
<dt><b>-blue_scale</b><i>float</i>

<dd>Further adjust the color balance by multiplying the red and blue
channels by these values.  Both default to 1.0.

<dt><b>-brightness=</b><i>float</i>

<dd>Change the output brightness.  Default is 1.0.

<dt><b>-no_clip_color</b>

<dd>By default, <b>cameratoapm</b> clips all colors to prevent pink
hues in the highlights.  Combine this option with
<b>-brightness=0.25</b> to leave the image data completely unclipped.

<dt><b>-rgb</b>

<dd>Write raw camera colors to the output file.  By default,
<b>cameratoapm</b> converts to sRGB colorspace.

<dt><b>-secondary</b>

<dd>For cameras based on the Fuji Super CCD SR, this option causes
<b>cameratopam</b> to use the secondary sensors, in effect
underexposing the image by four stops to reveal detail in the
highlights.  <b>cameratopam</b> silently ignores this option for all
other cameras.

<dt><b>-linear</b>

<dd>This option causes <b>cameratopam</b> to generate a variation on
PAM that has "linear" color samples.  In true PAM, each
sample in the image raster is gamma-corrected; i.e. it is essentially
proportional to brightness.  With the <b>linear</b> option,
<b>cameratopam</b> generates an image in which the samples are instead
proportional to light intensity.

<p>Without <b>-linear</b>, the image maxval is 255, so the image
contains one byte per sample.  With <b>-linear</b>, the maxval is
65535, so the image contains two bytes per sample.

<p>Without <b>-linear</b>, <b>cameratopam</b> uses a 99th percentile
white point.  With <b>-linear</b>, it doesn't.  I don't know what that
means.

</dl>


<h2 id="seealso">SEE ALSO</h2>

<a href="411toppm.html">411toppm</a>, 
<a href="pamflip.html">pamflip</a>, 
<a href="pam.html">pam</a>,

<h2 id="history">HISTORY</h2>

<p><b>cameratopam</b> was new in Netpbm 10.28 (June 2005).

<p>It was derived from the program <a
href="https://dechifro.org/dcraw/"><b>dcraw</b> by Dave
Coffin</a>, by Bryan Henderson in April 2005.  Bryan replaced the part
that generates the Netpbm output image and removed the Adobe Photoshop
output function.  Bryan changed the command syntax and made other
small changes to make the program consistent with Netpbm.  He also
split the source code into manageable pieces (<b>dcraw</b> had a
single 5000 line source file).


<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#history">HISTORY</a>
</ul>
</body>
</html>