Expand description
This module contains the image encodings used by OpenCV
§Supported encodings
mono8- 8-bit single channel imagergb8- 8-bit 3 channel imagergba8- 8-bit 4 channel imagebgr8- 8-bit 3 channel imagebgra8- 8-bit 4 channel imagemono16- 16-bit single channel imagergb16- 16-bit 3 channel imagergba16- 16-bit 4 channel imagebgr16- 16-bit 3 channel imagebgra16- 16-bit 4 channel imagebayer_rggb8- 8-bit Bayer imagebayer_bggr8- 8-bit Bayer imagebayer_gbrg8- 8-bit Bayer imagebayer_grbg8- 8-bit Bayer imagebayer_rggb16- 16-bit Bayer imagebayer_bggr16- 16-bit Bayer imagebayer_gbrg16- 16-bit Bayer imagebayer_grbg16- 16-bit Bayer imageyuv422- 8-bit 2 channel imageyuv422_yuy2- 8-bit 2 channel image
Enums§
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