Module image_encodings

Module image_encodings 

Source
Expand description

This module contains the image encodings used by OpenCV

§Supported encodings

  • mono8 - 8-bit single channel image
  • rgb8 - 8-bit 3 channel image
  • rgba8 - 8-bit 4 channel image
  • bgr8 - 8-bit 3 channel image
  • bgra8 - 8-bit 4 channel image
  • mono16 - 16-bit single channel image
  • rgb16 - 16-bit 3 channel image
  • rgba16 - 16-bit 4 channel image
  • bgr16 - 16-bit 3 channel image
  • bgra16 - 16-bit 4 channel image
  • bayer_rggb8 - 8-bit Bayer image
  • bayer_bggr8 - 8-bit Bayer image
  • bayer_gbrg8 - 8-bit Bayer image
  • bayer_grbg8 - 8-bit Bayer image
  • bayer_rggb16 - 16-bit Bayer image
  • bayer_bggr16 - 16-bit Bayer image
  • bayer_gbrg16 - 16-bit Bayer image
  • bayer_grbg16 - 16-bit Bayer image
  • yuv422 - 8-bit 2 channel image
  • yuv422_yuy2 - 8-bit 2 channel image

Enums§

Encoding

Functions§

from_cvenc_to_encstr
Returns the encoding for the given OpenCV encoding and bit depth
from_encstr_to_cvenc
Returns the OpenCV encoding for the given encoding
from_encstr_to_cvtype
Returns the OpenCV type for the given encoding
get_bit_depth
Returns the bit depth for the given encoding
get_conversion_code
Returns the conversion code for going from one color space to another
get_num_channels
Returns the number of channels for the given encoding
get_scaling_factor
Returns the scaling factor when converting between encodings with different bit depths