Can not use CV_32UC1

后端 未结 2 2015
长发绾君心
长发绾君心 2021-01-13 00:12

I need to store 32 bit unsigned integers in a matrix.

When I try to create the matrix:

Mat frameV(frameT1.rows-2*R, frameT1.cols-2*R, CV_32UC1 );


        
相关标签:
2条回答
  • 2021-01-13 00:28

    There is no such type as CV_32UC1. This is because OpenCV does not support 32 bit unsigned int type. The largest integral type supported by OpenCV is 32 bit int which can be specified by the CV_32SC1.

    0 讨论(0)
  • 2021-01-13 00:33

    Here you can find a complete list of matrix data types.

    http://opencv-srf.blogspot.com/2010/09/opencv-basics.html

    According to that article, 32 bit depth matrices should be signed or float. OpenCV does not support unsigned 32 bit depth matrices.

    0 讨论(0)
提交回复
热议问题