/[packages]/cauldron/dcraw/current/SOURCES/dcraw.1.html
ViewVC logotype

Contents of /cauldron/dcraw/current/SOURCES/dcraw.1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53152 - (show annotations) (download) (as text)
Thu Feb 17 16:09:23 2011 UTC (13 years, 2 months ago) by ahmad
File MIME type: text/html
File size: 8772 byte(s)
imported package dcraw
1 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
2 <HTML><HEAD><TITLE>Manpage of dcraw</TITLE>
3 </HEAD><BODY>
4 <H1>dcraw</H1>
5 Section: User Commands (1)<BR>Updated: February 6, 2008<BR><A HREF="#index">Index</A>
6 <A HREF="../index.html">Return to Main Contents</A><HR>
7
8
9 <A NAME="lbAB">&nbsp;</A>
10 <H2>NAME</H2>
11
12 dcraw - command-line decoder for raw digital photos
13 <A NAME="lbAC">&nbsp;</A>
14 <H2>SYNOPSIS</H2>
15
16 <B>dcraw</B>
17
18 [<I>OPTION</I>]... [<I>FILE</I>]...
19 <A NAME="lbAD">&nbsp;</A>
20 <H2>DESCRIPTION</H2>
21
22 <B>dcraw</B>
23
24 decodes raw photos, displays metadata, and extracts thumbnails.
25 <A NAME="lbAE">&nbsp;</A>
26 <H2>GENERAL OPTIONS</H2>
27
28 <DL COMPACT>
29 <DT><B>-v</B>
30
31 <DD>
32 Print verbose messages, not just warnings and errors.
33 <DT><B>-c</B>
34
35 <DD>
36 Write decoded images or thumbnails to standard output.
37 <DT><B>-e</B>
38
39 <DD>
40 Extract the camera-generated thumbnail, not the raw image.
41 You'll get either a JPEG or a PPM file, depending on the camera.
42 <DT><B>-z</B>
43
44 <DD>
45 Change the access and modification times of an AVI, JPEG, TIFF or raw
46 file to when the photo was taken, assuming that the camera clock
47 was set to Universal Time.
48 <DT><B>-i</B>
49
50 <DD>
51 Identify files but don't decode them.
52 Exit status is 0 if
53 <B>dcraw</B>
54
55 can decode the last file, 1 if it can't.
56 <B>-i -v</B>
57
58 shows metadata.
59 <DT><B></B>
60
61 <DD>
62 <B>dcraw</B>
63
64 cannot decode JPEG files!!
65 </DL>
66 <A NAME="lbAF">&nbsp;</A>
67 <H2>REPAIR OPTIONS</H2>
68
69 <DL COMPACT>
70 <DT><B>-P deadpixels.txt</B>
71
72 <DD>
73 Read the dead pixel list from this file instead of &quot;.badpixels&quot;.
74 See
75 <B>FILES</B>
76
77 for a description of the format.
78 <DT><B>-K darkframe.pgm</B>
79
80 <DD>
81 Subtract a dark frame from the raw data. To generate a
82 dark frame, shoot a raw photo with no light and do
83 <B>dcraw&nbsp;-D&nbsp;-4&nbsp;-j&nbsp;-t&nbsp;0</B>.
84
85 <DT><B>-k darkness</B>
86
87 <DD>
88 When shadows appear foggy, you need to raise the darkness level.
89 To measure this, apply
90 <B>pamsumm -mean</B>
91
92 to the dark frame generated above.
93 <DT><B>-S saturation</B>
94
95 <DD>
96 When highlights appear pink, you need to lower the saturation level.
97 To measure this, take a picture of something shiny and do
98 <B>dcraw -D -4 -j -c</B>
99
100 photo.raw
101 <B>| pamsumm -max</B>
102
103 <DT><B></B>
104
105 <DD>
106 The default darkness and saturation are usually correct.
107 <DT><B>-n noise_threshold</B>
108
109 <DD>
110 Use wavelets to erase noise while preserving real detail.
111 The best threshold should be somewhere between 100 and 1000.
112 <DT><B>-C red_mag blue_mag</B>
113
114 <DD>
115 Enlarge the raw red and blue layers by the given factors,
116 typically 0.999 to 1.001, to correct chromatic aberration.
117 <DT><B>-H 0</B>
118
119 <DD>
120 Clip all highlights to solid white (default).
121 <DT><B>-H 1</B>
122
123 <DD>
124 Leave highlights unclipped in various shades of pink.
125 <DT><B>-H 2</B>
126
127 <DD>
128 Blend clipped and unclipped values together for a gradual fade
129 to white.
130 <DT><B>-H 3+</B>
131
132 <DD>
133 Reconstruct highlights. Low numbers favor whites; high numbers
134 favor colors. Try
135 <B>-H 5</B>
136
137 as a compromise. If that's not good enough, do
138 <B>-H&nbsp;9</B>,
139
140 cut out the non-white highlights, and paste them into an image
141 generated with
142 <B>-H&nbsp;3</B>.
143
144 </DL>
145 <A NAME="lbAG">&nbsp;</A>
146 <H2>COLOR OPTIONS</H2>
147
148 By default,
149 <B>dcraw</B>
150
151 uses a fixed white balance based on a color chart illuminated
152 with a standard D65 lamp.
153 <DL COMPACT>
154 <DT><B>-w</B>
155
156 <DD>
157 Use the white balance specified by the camera.
158 If this is not found, print a warning and use another method.
159 <DT><B>-a</B>
160
161 <DD>
162 Calculate the white balance by averaging the entire image.
163 <DT><B>-A left top width height</B>
164
165 <DD>
166 Calculate the white balance by averaging a rectangular area.
167 First do
168 <B>dcraw&nbsp;-j&nbsp;-t&nbsp;0</B>
169
170 and select an area of neutral grey color.
171 <DT><B>-r mul0 mul1 mul2 mul3</B>
172
173 <DD>
174 Specify your own raw white balance.
175 These multipliers can be cut and pasted from the output of
176 <B>dcraw&nbsp;-v</B>.
177
178 <DT><B>+M</B> or <B>-M</B>
179
180 <DD>
181 Use (or don't use) any color matrix from the camera metadata.
182 The default is
183 <B>+M</B>
184
185 if
186 <B>-w</B>
187
188 is set,
189 <B>-M</B>
190
191 otherwise.
192 This option only affects Olympus, Leaf, and Phase One cameras.
193 <DT><B>-o [0-5]</B>
194
195 <DD>
196 Select the output colorspace when the
197 <B>-p</B>
198
199 option is not used:
200 <P>
201 <B> 0</B>
202
203 &nbsp;&nbsp;Raw color (unique to each camera)
204 <BR>
205
206 <B> 1</B>
207
208 &nbsp;&nbsp;sRGB D65 (default)
209 <BR>
210
211 <B> 2</B>
212
213 &nbsp;&nbsp;Adobe RGB (1998) D65
214 <BR>
215
216 <B> 3</B>
217
218 &nbsp;&nbsp;Wide Gamut RGB D65
219 <BR>
220
221 <B> 4</B>
222
223 &nbsp;&nbsp;Kodak ProPhoto RGB D65
224 <BR>
225
226 <B> 5</B>
227
228 &nbsp;&nbsp;XYZ
229 <DT><B>-p&nbsp;camera.icm</B>&nbsp;[&nbsp;<B>-o&nbsp;output.icm</B>&nbsp;]
230
231 <DD>
232 Use ICC profiles to define the camera's raw colorspace and the
233 desired output colorspace (sRGB by default).
234 <DT><B>-p embed</B>
235
236 <DD>
237 Use the ICC profile embedded in the raw photo.
238 </DL>
239 <A NAME="lbAH">&nbsp;</A>
240 <H2>INTERPOLATION OPTIONS</H2>
241
242 <DL COMPACT>
243 <DT><B>-d</B>
244
245 <DD>
246 Show the raw data as a grayscale image with no interpolation.
247 Good for photographing black-and-white documents.
248 <DT><B>-D</B>
249
250 <DD>
251 Same as
252 <B>-d</B>,
253
254 but totally raw (no color scaling).
255 <DT><B>-h</B>
256
257 <DD>
258 Output a half-size color image. Twice as fast as
259 <B>-q&nbsp;0</B>.
260
261 <DT><B>-q 0</B>
262
263 <DD>
264 Use high-speed, low-quality bilinear interpolation.
265 <DT><B>-q 1</B>
266
267 <DD>
268 Use Variable Number of Gradients (VNG) interpolation.
269 <DT><B>-q 2</B>
270
271 <DD>
272 Use Patterned Pixel Grouping (PPG) interpolation.
273 <DT><B>-q 3</B>
274
275 <DD>
276 Use Adaptive Homogeneity-Directed (AHD) interpolation.
277 <DT><B>-f</B>
278
279 <DD>
280 Interpolate RGB as four colors. Use this if the output shows
281 false 2x2 meshes with VNG or mazes with AHD.
282 <DT><B>-m number_of_passes</B>
283
284 <DD>
285 After interpolation, clean up color artifacts by repeatedly
286 applying a 3x3 median filter to the R-G and B-G channels.
287 </DL>
288 <A NAME="lbAI">&nbsp;</A>
289 <H2>OUTPUT OPTIONS</H2>
290
291 By default,
292 <B>dcraw</B>
293
294 writes PGM/PPM/PAM with 8-bit samples, a BT.709 gamma curve,
295 a histogram-based white level, and no metadata.
296 <DL COMPACT>
297 <DT><B>-W</B>
298
299 <DD>
300 Use a fixed white level, ignoring the image histogram.
301 <DT><B>-b brightness</B>
302
303 <DD>
304 Divide the white level by this number, 1.0 by default.
305 <DT><B>-4</B>
306
307 <DD>
308 Write 16-bit linear samples (fixed white level, no gamma).
309 <DT><B>-T</B>
310
311 <DD>
312 Write TIFF with metadata instead of PGM/PPM/PAM.
313 <DT><B>-t [0-7,90,180,270]</B>
314
315 <DD>
316 Flip the output image. By default,
317 <B>dcraw</B>
318
319 applies the flip specified by the camera.
320 <B>-t 0</B>
321
322 disables all flipping.
323 <DT><B>-j</B>
324
325 <DD>
326 For Fuji&nbsp;Super&nbsp;CCD cameras, show the image tilted 45 degrees.
327 For cameras with non-square pixels, do not stretch the image to
328 its correct aspect ratio. In any case, this option guarantees
329 that each output pixel corresponds to one raw pixel.
330 <DT><B>-s [0..N-1]</B> or <B>-s all</B>
331
332 <DD>
333 If a file contains N raw images, choose one or &quot;all&quot; to decode.
334 For example, Fuji&nbsp;Super&nbsp;CCD&nbsp;SR cameras generate a second image
335 underexposed four stops to show detail in the highlights.
336 </DL>
337 <A NAME="lbAJ">&nbsp;</A>
338 <H2>FILES</H2>
339
340 <DL COMPACT>
341 <DT>:./.badpixels, ../.badpixels, ../../.badpixels, ...<DD>
342 List of your camera's dead pixels, so that
343 <B>dcraw</B>
344
345 can interpolate around them. Each line specifies the column,
346 row, and UNIX time of death for one pixel. For example:
347 <P>
348 <PRE>
349 962 91 1028350000 # died between August 1 and 4, 2002
350 1285 1067 0 # don't know when this pixel died
351 </PRE>
352
353 <P>
354 These coordinates are before any cropping or rotation, so use
355 <B>dcraw -j -t 0</B>
356
357 to locate dead pixels.
358 </DL>
359 <A NAME="lbAK">&nbsp;</A>
360 <H2>SEE ALSO</H2>
361
362 <B><A HREF="../man5/pgm.5.html">pgm</A></B>(5),
363
364 <B><A HREF="../man5/ppm.5.html">ppm</A></B>(5),
365
366 <B><A HREF="../man5/pam.5.html">pam</A></B>(5),
367
368 <B><A HREF="../man1/pamsumm.1.html">pamsumm</A></B>(1),
369
370 <B><A HREF="../man1/pnmgamma.1.html">pnmgamma</A></B>(1),
371
372 <B><A HREF="../man1/pnmtotiff.1.html">pnmtotiff</A></B>(1),
373
374 <B><A HREF="../man1/pnmtopng.1.html">pnmtopng</A></B>(1),
375
376 <B><A HREF="../man1/gphoto2.1.html">gphoto2</A></B>(1),
377
378 <B><A HREF="../man1/cjpeg.1.html">cjpeg</A></B>(1),
379
380 <B><A HREF="../man1/djpeg.1.html">djpeg</A></B>(1)
381
382 <A NAME="lbAL">&nbsp;</A>
383 <H2>AUTHOR</H2>
384
385 Written by David Coffin, dcoffin a cybercom o net
386 <P>
387
388 <HR>
389 <A NAME="index">&nbsp;</A><H2>Index</H2>
390 <DL>
391 <DT><A HREF="#lbAB">NAME</A><DD>
392 <DT><A HREF="#lbAC">SYNOPSIS</A><DD>
393 <DT><A HREF="#lbAD">DESCRIPTION</A><DD>
394 <DT><A HREF="#lbAE">GENERAL OPTIONS</A><DD>
395 <DT><A HREF="#lbAF">REPAIR OPTIONS</A><DD>
396 <DT><A HREF="#lbAG">COLOR OPTIONS</A><DD>
397 <DT><A HREF="#lbAH">INTERPOLATION OPTIONS</A><DD>
398 <DT><A HREF="#lbAI">OUTPUT OPTIONS</A><DD>
399 <DT><A HREF="#lbAJ">FILES</A><DD>
400 <DT><A HREF="#lbAK">SEE ALSO</A><DD>
401 <DT><A HREF="#lbAL">AUTHOR</A><DD>
402 </DL>
403 <HR>
404 This document was created by
405 <A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
406 using the manual pages.<BR>
407 Time: 22:34:13 GMT, September 15, 2008
408 </BODY>
409 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.30