Azure Kinect Sensor SDK
refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK
|
enum k4a_image_format_t |
Image format type.
Enumerator | |
---|---|
K4A_IMAGE_FORMAT_COLOR_MJPG | Color image type MJPG. The buffer for each image is encoded as a JPEG and can be decoded by a JPEG decoder. Because the image is compressed, the stride parameter for the k4a_image_t is not applicable. Each MJPG encoded image in a stream may be of differing size depending on the compression efficiency. |
K4A_IMAGE_FORMAT_COLOR_NV12 | Color image type NV12. NV12 images separate the luminance and chroma data such that all the luminance is at the beginning of the buffer, and the chroma lines follow immediately after. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. Chroma has half as many lines of height and half the width in pixels of the luminance. Each chroma line has the same width in bytes as a luminance line. |
K4A_IMAGE_FORMAT_COLOR_YUY2 | Color image type YUY2. YUY2 stores chroma and luminance data in interleaved pixels. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. |
K4A_IMAGE_FORMAT_COLOR_BGRA32 | Color image type BGRA32. Each pixel of BGRA32 data is four bytes. The first three bytes represent Blue, Green, and Red data. The fourth byte is the alpha channel and is unused in the Azure Kinect APIs. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. The Azure Kinect device does not natively capture in this format. Requesting images of this format requires additional computation in the API. |
K4A_IMAGE_FORMAT_DEPTH16 | Depth image type DEPTH16. Each pixel of DEPTH16 data is two bytes of little endian unsigned depth data. The unit of the data is in millimeters from the origin of the camera. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. |
K4A_IMAGE_FORMAT_IR16 | Image type IR16. Each pixel of IR16 data is two bytes of little endian unsigned depth data. The value of the data represents brightness. This format represents infrared light and is captured by the depth camera. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. |
K4A_IMAGE_FORMAT_CUSTOM8 | Single channel image type CUSTOM8. Each pixel of CUSTOM8 is a single channel one byte of unsigned data. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. |
K4A_IMAGE_FORMAT_CUSTOM16 | Single channel image type CUSTOM16. Each pixel of CUSTOM16 is a single channel two bytes of little endian unsigned data. Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. |
K4A_IMAGE_FORMAT_CUSTOM | Custom image format. Used in conjunction with user created images or images packing non-standard data. See the originator of the custom formatted image for information on how to interpret the data. |