Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/pambayer.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Pambayer User Manual
.SH 1
pambayer
.LP
Updated: 18 August 2005
.br
Table Of Contents
.SH 2
NAME
.LP
pambayer - interpret Bayer patterns
.SH 2
SYNOPSIS
.LP
\fBpambayer\fR
\fB-type=\fR{\fB1\fR, \fB2\fR, \fB3\fR, \fB4\fR}
[\fIpamfile\fR]
.LP
Minimum unique abbreviation of option is acceptable.  You may use
double hyphens instead of single hyphen to denote options.  You may use
white space in place of the equals sign to separate an option name
from its value.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpambayer\fR reads a Bayer pattern in a 1-deep Netpbm image and
produces a color image in PAM RGB format as output.
.LP
A Bayer pattern is what you get from the optical sensor in some
digital cameras.  Such a camera doesn't have a red, green, and blue
sensor in the exact same place for an individual pixel.  Instead, it
has red, green, and blue sensors laid out in a two dimensional array.
The pattern in which they are laid out is the Bayer pattern.  The
input to \fBpambayer\fR is one sample value for each of those
sensors, so some samples are red, some are green, and some are blue.
.LP
The input image is a PNM image or PAM image of arbitrary tuple type.
\fBpambayer\fR looks at only the first plane of the input.
.LP
The output image is a PAM image of tuple type "RGB", i.e.
a standard color image.  You can convert this to PPM with
\fBpamtopnm\fR.
.LP
If you're interested in just one of the primary colors, use
\fBpamchannel\fR on the output of \fBpambayer\fR to extract it.
.SH 2
OPTIONS
.LP
.RS
.IP "\fBtype=\fR\fIn\fR"
This tells which Bayer pattern the input is:
.RS
.IP "1"
GBG/RGR/GBG matrix
.IP "2"
RGR/GBG/RGR matrix
.IP "3"
BGB/GRG/BGB matrix
.IP "4"
GRG/BGB/GRG matrix
.RE
This option is mandatory.
.RE
.SH 2
SEE ALSO
.LP
\fBcameratopam\fR
\fBpam\fR
.SH 2
HISTORY
.LP
.LP
\fBpambayer\fR was new in Netpbm 10.30 (October 2005).
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
OPTIONS
.IP \(bu
DESCRIPTION
.IP \(bu
SEE ALSO
.IP \(bu
HISTORY
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.