Pixel formats
Last modified by Lev Andronov on 2024/11/03 16:48
What is a pixel format
A Pixel Format refers to the structure of the image data transmitted by the camera. Different pixel formats exist depending on the camera model and whether it is a color or monochrome type.
- Monochrome camera uses one of the mono pixel formats and outputs 8, 10, 12, 14 or 16 bits of data per pixel.
- Color camera equipped with a Bayer color filter and can output color image using Bayer pixel formats in 8, 10, 12, 14 or 16 bits of data per pixel, with each pixel filtered to capture only one of the primary colors — red, green, or blue.
Color pixel data is not processed or interpolated and is often referred to as 'raw' output. The specific Bayer formats available depend on the camera model. Converting a Bayer-coded image into RGB is called 'Demosaic' or 'Debayer' process.
Pixel format table
Pixel Format | PFNC | PixelFormat code | Bits | Bytes | GenICam 32-bit value (hex) |
Mono8 | Mono8 | 0x0101 | 8 | 1 | 0x01080001 |
Mono10 | Mono10 | 0x0102 | 10 | 2 | 0x01100003 |
Mono12 | Mono12 | 0x0103 | 12 | 2 | 0x01100005 |
Mono14 | Mono14 | 0x0104 | 14 | 2 | |
Mono16 | Mono16 | 0x0105 | 16 | 2 | 0x01100007 |
BayerGR8 | BayerGR8 | 0x0311 | 8 | 1 | 0x01080008 |
BayerGR10 | BayerGR10 | 0x0312 | 10 | 2 | 0x0110000C |
BayerGR12 | BayerGR12 | 0x0313 | 12 | 2 | 0x01100010 |
BayerGR14 | BayerGR14 | 0x0314 | 14 | 2 | |
BayerGR16 | BayerGR16 | 0x0315 | 16 | 2 | |
BayerRG8 | BayerRG8 | 0x0321 | 8 | 1 | 0x01080009 |
BayerRG10 | BayerRG10 | 0x0322 | 10 | 2 | 0x0110000D |
BayerRG12 | BayerRG12 | 0x0323 | 12 | 2 | 0x01100011 |
BayerRG14 | BayerRG14 | 0x0324 | 14 | 2 | |
BayerRG16 | BayerRG16 | 0x0325 | 16 | 2 | |
BayerGB8 | BayerGB8 | 0x0331 | 8 | 1 | 0x0108000A |
BayerGB10 | BayerGB10 | 0x0332 | 10 | 2 | 0x0110000E |
BayerGB12 | BayerGB12 | 0x0333 | 12 | 2 | 0x01100012 |
BayerGB14 | BayerGB14 | 0x0334 | 14 | 2 | |
BayerGB16 | BayerGB16 | 0x0335 | 16 | 2 | |
BayerBG8 | BayerBG8 | 0x0341 | 8 | 1 | 0x0108000B |
BayerBG10 | BayerBG10 | 0x0342 | 10 | 2 | 0x0110000F |
BayerBG12 | BayerBG12 | 0x0343 | 12 | 2 | 0x01100013 |
BayerBG14 | BayerBG14 | 0x0344 | 14 | 2 | |
BayerBG16 | BayerBG16 | 0x0345 | 16 | 2 | |
RGB8 | RGB8 | 0x0401 | 8 | 1 | 0x02180014 |
RGB10 | RGB10 | 0x0402 | 10 | 2 | 0x02300018 |
RGB12 | RGB12 | 0x0403 | 12 | 2 | 0x0230001A |
RGB14 | RGB14 | 0x0404 | 14 | 2 | |
RGB16 | RGB16 | 0x0405 | 16 | 2 | |
RGBA8 | RGBa8 | 0x0501 | 8 | 1 | 0x02200016 |
RGBA10 | RGBa10 | 0x0502 | 10 | 2 | |
RGBA12 | RGBa12 | 0x0503 | 12 | 2 | |
RGBA14 | RGBa14 | 0x0504 | 14 | 2 | |
RGBA16 | RGBa16 | 0x0505 | 16 | 2 |