OpenCV 关于数据的储存

Mat_对应的是CV_8U,
Mat_对应的是CV_8S,
Mat_对应的是CV_32S,
Mat_对应的是CV_32F,
Mat_对应的是CV_64F,
对应的数据深度如下:

• CV_8U - 8-bit unsigned integers ( 0..255 )

• CV_8S - 8-bit signed integers ( -128..127 )

• CV_16U - 16-bit unsigned integers ( 0..65535 )

• CV_16S - 16-bit signed integers ( -32768..32767 )

• CV_32S - 32-bit signed integers ( -2147483648..2147483647 )

• CV_32F - 32-bit floating-point numbers ( -FLT_MAX..FLT_MAX, INF, NAN )

• CV_64F - 64-bit floating-point numbers ( -DBL_MAX..DBL_MAX, INF, NAN )

猜你喜欢

转载自blog.csdn.net/p_3er/article/details/83213506