Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Depth is byte per pixel and usually is unsigned char. Channel is the number of layers in your image. depth=1 and channel=4 is for a BGR+Alpha image. A gray scale image would have depth CV_8U and channels=1

Depth Depth is byte per pixel and usually is unsigned char. Channel Channel is the number of layers in your image. depth=1 and channel=4 is for a BGR+Alpha image. A gray scale image would have depth CV_8U and channels=1