Pixel Formatting
The following table shows the values of ColorFormat for each class of cameras.
Class of cameras/Camera type Bit depth |
Applicable ColorFormat values |
Monochrome cameras 8-bit |
Y8 |
Monochrome cameras 10-bit |
Y8, Y10, Y16 |
Monochrome cameras 12-bit |
Y8, Y12, Y16 |
Monochrome cameras 14-bit |
Y8, Y14, Y16 |
Monochrome cameras 16-bit |
Y8, Y16 |
Bayer CFA color cameras 8-bit |
RGB24, RGB32, RGB24PL, BAYER8 |
Bayer CFA color cameras 10-bit |
RGB24, RGB32, RGB24PL, RGB30PL, RGB48PL, BAYER8, BAYER10, BAYER16 |
Bayer CFA color cameras 12-bit |
RGB24, RGB32, RGB24PL, RGB36PL, RGB48PL, BAYER8, BAYER12, BAYER16 |
Bayer CFA color cameras 14-bit |
RGB24, RGB32, RGB24PL, RGB42PL, RGB48PL, BAYER8, BAYER14, BAYER16 |
Bayer CFA color cameras 16-bit |
RGB24, RGB32, RGB24PL, RGB48PL, BAYER8, BAYER16 |
RGB color cameras 3 x 8-bit |
RGB24, RGB32, RGB24PL |
RGB color cameras 3 x 10-bit |
RGB24, RGB32, RGB24PL, RGB30PL, RGB48PL |
RGB color cameras 3 x 12-bit |
RGB24, RGB32, RGB24PL, RGB36PL, RGB48PL |
The following table describes the properties of the ColorFormat values:
Value |
Format class name |
Bit depth |
Number of components |
Number of bytes per pixel |
Number of planes |
Y8 |
Monochrome |
8 |
1
|
1 |
1
|
Y10 |
10 |
2
|
|||
Y12 |
12 |
||||
Y14 |
14 |
||||
Y16 |
16 |
||||
BAYER8 |
Raw Bayer CFA
|
8 |
1 |
1 |
1 |
BAYER10 |
10 |
2
|
|||
BAYER12 |
12 |
||||
BAYER14 |
14 |
||||
BAYER16 |
16 |
||||
RGB24 |
Packed (A)RGB Color |
8/8/8 |
3 |
3 |
1 |
RGB32, ARGB32 |
8/8/8/8 |
4 |
4 |
||
RGB24PL |
Planar RGB Color |
8/8/8 |
3 |
3 |
3 |
RGB30PL |
10/10/10 |
6 |
|||
RGB36PL |
12/12/12 |
||||
RGB42PL |
14/14/14 |
||||
RGB48PL |
16/16/16 |
Notes
- When the pixel container is larger than the bit depth (namely for 10-, 12-, and 14-bit cases), the significant bits are justified to the LSB and the uppermost unused bits are forced to 0.
- In case of packed (A) RGB formats, the components are stored at successive byte addresses in the following order: B, G, R, (A). B always occupies the LSB position.The A component is forced to 0.
- In case of planar RGB formats, the planes are indexed in the following order: R, G, B; the R plane is the plane of index 0.