失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > OpenCV学习笔记——Mat类型数据存储

OpenCV学习笔记——Mat类型数据存储

时间:2024-02-02 07:44:31

相关推荐

OpenCV学习笔记——Mat类型数据存储

CV_[The number of bits per item][Signed or Unsigned][Type Prefix]C[The channel number]

比如CV_8UC3表示使用8位的 unsigned char 型,每个像素由三个元素组成三通道。

Mat_<uchar>对应的是CV_8U,

Mat_<char>对应的是CV_8S,

Mat_<int>对应的是CV_32S,

Mat_<float>对应的是CV_32F,

Mat_<double>对应的是CV_64F

[1] /yang_xian521/article/details/7107786

[2] .cn/opencvdoc/2.3.2/html/doc/tutorials/core/mat%20-%20the%20basic%20image%20containe/mat%20-%20the%20basic%20image%20container.html#matthebasicimagecontainer

如果觉得《OpenCV学习笔记——Mat类型数据存储》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。