Unable to use CV_32UC1

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

When I try to create a matrix:

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

this gives a compilation error:

 error C2065: 'CV_32UC1' : undeclared identifier 

Although CV_8UC1 works, I need CV_32UC1.

I am using MSVC 2010 and OpenCV 2.4.3.

+4
source share
2 answers

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

+5
source

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

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

According to this article, 32-bit depth matrices must be signed or floated. OpenCV does not support unsigned 32-bit depth matrices.

+1
source

All Articles