Hi,
I am trying to use the findContours function in OpenCV, but VS 2008 gives an error saying:
OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupport ed array type) in unknown function, file ........\ocv\opencv\src\cxcore\cxarr ay.cpp, line 2476
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Press any key to continue . . .
Here's the code:
Mat_> originalimage;
Mat_> resultingimage;
vector> v;
originalimage = cv::imread("Original.ppm");
cv::findContours(originalimage,v,CV_RETR_LIST,CV_CHAIN_APPROX_NONE);
Thanks in advance