# Revision history [back]

### Error running program

Hi i m running a programm I finish . I see this as error:

   OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or
unsupported array type) in cvGetMat, file
/build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 2482 terminate
called after throwing an instance of 'cv::Exception' what():
/build/buildd/opencv-2.3.1/modules/core/src/array.cpp:2482: error: (-206)
Unrecognized or unsupported array type in function cvGetMat


I suppose it s an error about the type of image I use. What I do is take an image and work with it in two different ways, for if the image is in grey scale or RBG. I suppose I did some errors with some functions need in paramethers the type. For example:

  img= image.zeros(rows,cols,CV_32F);


I don t know the difference in the last paramether (the type), can I use for example image.type() ? There is something it explain good the type in openCV. Thanks