OpenCV CV_8UC3含义

转载自:https://blog.csdn.net/lay_zy/article/details/78399317?utm_source=copy

预定义类型的结构:

CV_<bit_depth>(S|U|F)C<number_of_channels>

其中,

(1) bit_depth—比特数—代表8bite\16bite\32bite\64bite
eg:8表示你所创建的储存图片的Mat对象中,每个像素点在内存空间所占的空间大小8bite。

(2) S|U|F
S: signed int,即有符号整型;
U: unsigned int,即无符号整型;
F: float,单精度浮点型。

(3) C<number_of_channels>:所存储的图片的通道数。
eg 1—grayImg灰度图像—是---单通道图像
2—RGB彩色图像—是---3通道图像
3—带Alpha通道的RGB彩色图像—是---4通道图像

猜你喜欢

转载自blog.csdn.net/weixin_37747104/article/details/82918608