我对 OpenCV Mat 元素类型感到困惑。这是来自文档:
There is a limited fixed set of primitive data types the library can operate on.
That is, array elements should have one of the following types:
8-bit unsigned integer (uchar)
8-bit signed integer (schar)
16-bit unsigned integer (ushort)
16-bit signed integer (short)
32-bit signed integer (int)
32-bit floating-point number (float)
64-bit floating-point number (double)
...
For these basic types, the following enumeration is applied:
enum { CV_8U=0, CV_8S=1, CV_16U=2, CV_16S=3, CV_32S=4, CV_32F=5, CV_64F=6 };
众所周知,C++ 标准没有以字节为单位定义基本类型的大小,那么它们如何使用这样的假设呢?我应该期待什么类型,比如说 CV_32S,它是 int32_t 还是 int?