Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extracting bpp without explicitly mapping value to data types


I need to calculate the bits per pixel of a matrix and wonder if there is a decent method to extract the depth of an image in bits directly without explicitly mapping the types CV_8U,.... to the appropriate values (or using if-else constructs)?