Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not use CV_32UC1

Tags:

c++

opencv

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 );

this gives compilation error :

error C2065: 'CV_32UC1' : undeclared identifier

Although CV_8UC1 works but I need CV_32UC1.

I am using MSVC 2010 and OpenCV 2.4.3.

like image 307
Barshan Das Avatar asked Jan 29 '13 11:01

Barshan Das


1 Answers

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.

like image 141
sgarizvi Avatar answered Sep 30 '22 02:09

sgarizvi