1Pambayer User Manual(0) Pambayer User Manual(0)
2
3
4
6 pambayer - interpret Bayer patterns
7
8
10 pambayer -type={1|2|3|4} [pamfile]
11
12
14 This program is part of Netpbm(1).
15
16 pambayer reads a Bayer pattern in a 1-deep Netpbm image and produces a
17 color image in PAM RGB format as output.
18
19 A Bayer pattern is what you get from the optical sensor in some digital
20 cameras. Such a camera doesn't have a red, green, and blue sensor in
21 the exact same place for an individual pixel. Instead, it has red,
22 green, and blue sensors laid out in a two dimensional array. The pat‐
23 tern in which they are laid out is the Bayer pattern. The input to
24 pambayer is one sample value for each of those sensors, so some samples
25 are red, some are green, and some are blue.
26
27 The input image is a PNM image or PAM image of arbitrary tuple type.
28 pambayer looks at only the first plane of the input.
29
30 The output image is a PAM image of tuple type 'RGB', i.e. a standard
31 color image. You can convert this to PPM with pamtopnm(1).
32
33 If you're interested in just one of the primary colors, use pamchannel
34 on the output of pambayer to extract it.
35
36
37
39 Minimum unique abbreviation of option is acceptable. You may use dou‐
40 ble hyphens instead of single hyphen to denote options. You may use
41 white space in place of the equals sign to separate an option name from
42 its value.
43
44
45
46
47 type=n This tells which Bayer pattern the input is:
48
49
50
51 1 GBG/RGR/GBG matrix
52
53 2 RGR/GBG/RGR matrix
54
55 3 BGB/GRG/BGB matrix
56
57 4 GRG/BGB/GRG matrix
58
59
60 This option is mandatory.
61
62
63
64
65
66
68 cameratopam(1) pam(1)
69
70
72 pambayer was new in Netpbm 10.30 (October 2005).
73
74
75
76netpbm documentation 18 August 2005 Pambayer User Manual(0)