diff options
Diffstat (limited to '')
-rw-r--r-- | upstream/opensuse-tumbleweed/man1/pambayer.1 | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/upstream/opensuse-tumbleweed/man1/pambayer.1 b/upstream/opensuse-tumbleweed/man1/pambayer.1 new file mode 100644 index 00000000..96082e9d --- /dev/null +++ b/upstream/opensuse-tumbleweed/man1/pambayer.1 @@ -0,0 +1,131 @@ +\ +.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. +.\" Do not hand-hack it! If you have bug fixes or improvements, please find +.\" the corresponding HTML page on the Netpbm website, generate a patch +.\" against that, and send it to the Netpbm maintainer. +.TH "Pambayer User Manual" 0 "18 August 2005" "netpbm documentation" + +.SH NAME +pambayer - interpret Bayer patterns + +.UN synopsis +.SH SYNOPSIS + +\fBpambayer\fP +\fB-type=\fP{\fB1\fP|\fB2\fP|\fB3\fP|\fB4\fP} +[\fB-nointerpolate\fP] +[\fIpamfile\fP] +.PP +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. + +.UN description +.SH DESCRIPTION +.PP +This program is part of +.BR "Netpbm" (1)\c +\&. +.PP +\fBpambayer\fP reads a Bayer pattern in a 1-deep Netpbm image and +produces a color image in PAM RGB format as output. +.PP +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\fP is one sample value for each of those +sensors, so some samples are red, some are green, and some are blue. +.PP +\fBpambayer\fP turns that into a regular visual image with one pixel +per sensor. For the two components of each pixel that are missing in the +corresponding Bayer input, \fBpambayer\fP averages the sample values from +the adjacent pixels that do have that component. +.PP +But you can have \fBpambayer\fP fill in black instead (see the +\fB-noninterpolate\fP option), which gives you a simpler representation of +what the camera saw, on which you might do further processing. Such an image +still looks right, though considerably dimmer, if you stand far enough away +and let your eyes do the interpolation. +.PP +The input image is a pseudo-PNM image (pseudo- because while the structure +is the same, the sample values have different meanings) or PAM image of +arbitrary tuple type. \fBpambayer\fP looks at only the first plane of the +input. +.PP +The output image is a PAM image of tuple type "RGB", i.e. +a standard color image. You can convert this to PPM with +.BR "\fBpamtopnm\fP" (1)\c +\&. +.PP +If you're interested in just one of the primary colors, use +\fBpamchannel\fP on the output of \fBpambayer\fP to extract it. + + +.UN options +.SH OPTIONS +.PP +In addition to the options common to all programs based on libnetpbm +(most notably \fB-quiet\fP, see +.UR index.html#commonoptions + Common Options +.UE +\&), \fBpambayer\fP recognizes the following +command line options: + + + +.TP +\fB-type=\fP\fIn\fP +This tells which Bayer pattern the input is: + + +.TP +1 +GBG/RGR/GBG matrix +.TP +2 +RGR/GBG/RGR matrix +.TP +3 +BGB/GRG/BGB matrix +.TP +4 +GRG/BGB/GRG matrix + + +This option is mandatory. + +.TP +\fB-nointerpolate\fP +Each output pixel position corresponds to one position in the input +Bayer pattern, which means only one of the three color components is +supplied by the input. For the other two, this option says to user zero. +Without it, \fBpambayer\fP instead interpolates from the adjacent pixels +that do have that color component. +.sp +This option was new in Netpbm 10.49 (December 2009). + + + + + +.UN seealso +.SH SEE ALSO +.BR "cameratopam" (1)\c +\& +.BR "pam" (5)\c +\& + +.UN history +.SH HISTORY +.PP +\fBpambayer\fP was new in Netpbm 10.30 (October 2005). +.SH DOCUMENT SOURCE +This manual page was generated by the Netpbm tool 'makeman' from HTML +source. The master documentation is at +.IP +.B http://netpbm.sourceforge.net/doc/pambayer.html +.PP
\ No newline at end of file |