I'm try to write application for iOS using openCV. When I'm using code from the examples (for example squares.c) and adopt it to my interface all is good. But when I'm try to add some functions for testing strange errors occurred. For example:
const cv::Point* p = &squares[j][0];
int n = (int)squares[j].size();
cv::Mat image = [my_image CVMat];
polylines(image, &p, &n, 1, true, cv::Scalar(0,255,0), 8, CV_AA); //Working good
cvFloodFill(&c, cvPoint(10, 10), CV_RGB(255, 0, 0)); // Not working
Error: OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /Users/Aziz/Documents/Projects/opencv_sources/trunk/modules/core/src/array.cpp, line 2482
What I'm doing wrong?