.TL
Cameratopam User Manual
.SH 1
pamflip
.LP
Updated: 12 April 2005
.br
Table Of Contents
.SH 2
NAME
.LP
cameratopam - convert raw camera image to PAM
.SH 2
SYNOPSIS
.LP
\fBcameratopam\fR
[\fIinput_file_name\fR]
[\fB-identify_only\fR]
[\fB-quick_interpolate\fR]
[\fB-half_size\fR]
[\fB-four_color_rgb\fR]
[\fB-document_mode\fR]
[\fB-balance_auto\fR]
[\fB-balance_camera\fR]
[\fB-red_scale=\fR\fIfloat\fR]
[\fB-blue_scale=\fR\fIfloat\fR]
[\fB-brightness=\fR\fIfraction\fR]
[\fB-no_clip_color\fR]
[\fB-rgb\fR]
[\fB-secondary\fR]
[\fB-linear\fR]
[\fB-verbose\fR]
.LP
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.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBcameratopam\fR converts from any of dozens of raw camera image
formats to PAM.
.LP
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.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-identify_only\fR"
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.
.IP "\fB-verbose\fR"
Report to Standard Error details of the processing.
.IP "\fB-quick_interpolate\fR"
Use simple bilinear interpolation for quick results. The default
is to use a slow, high-quality adaptive algorithm.
.IP "\fB-half_size\fR"
Half-size the output image. Instead of interpolating, reduce
each 2x2 block of sensors to one pixel. Much faster than
\fB-quick_interpolate\fR.
.IP "\fB-four_color_rgb\fR"
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.
.IP "\fB-document_mode\fR"
Show the raw data as a grayscale image with no interpolation.
This is good for photographing black and white documents.
.IP "\fB-balance_auto\fR"
Automatic color balance. The default is to use a fixed
color balance based on a white card photographed in sunlight.
.IP "\fB-balance_camera\fR"
Use the color balance specified by the camera. If
\fBcameratopam\fR can't find this, it prints a warning and reverts to
the default.
.IP "\fB-red_scale=\fR\fIfloat\fR"
.IP "\fB-blue_scale\fR\fIfloat\fR"
Further adjust the color balance by multiplying the red and blue
channels by these values. Both default to 1.0.
.IP "\fB-brightness=\fR\fIfloat\fR"
Change the output brightness. Default is 1.0.
.IP "\fB-no_clip_color\fR"
By default, \fBcameratoapm\fR clips all colors to prevent pink
hues in the highlights. Combine this option with
\fB-brightness=0.25\fR to leave the image data completely unclipped.
.IP "\fB-rgb\fR"
Write raw camera colors to the output file. By default,
\fBcameratoapm\fR converts to sRGB colorspace.
.IP "\fB-secondary\fR"
For cameras based on the Fuji Super CCD SR, this option causes
\fBcameratopam\fR to use the secondary sensors, in effect
underexposing the image by four stops to reveal detail in the
highlights. \fBcameratopam\fR silently ignores this option for all
other cameras.
.IP "\fB-linear\fR"
This option causes \fBcameratopam\fR 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 \fBlinear\fR option,
\fBcameratopam\fR generates an image in which the samples are instead
proportional to light intensity.
.LP
Without \fB-linear\fR, the image maxval is 255, so the image
contains one byte per sample. With \fB-linear\fR, the maxval is
65535, so the image contains two bytes per sample.
.LP
Without \fB-linear\fR, \fBcameratopam\fR uses a 99th percentile
white point. With \fB-linear\fR, it doesn't. I don't know what that
means.
.RE
.SH 2
SEE ALSO
.LP
411toppm,
pamflip,
pam,
.SH 2
HISTORY
.LP
.LP
\fBcameratopam\fR was new in Netpbm 10.28 (June 2005).
.LP
It was derived from the program \fBdcraw\fR by Dave
Coffin, 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 and made other
small changes to make the program consistent with Netpbm. He also
split the source code into manageable pieces (\fBdcraw\fR has a
single 5000 line source file).
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
HISTORY
.LP
|