I have this C ++ OpenCV code ...
vector<Vec4i> hierarchy;
vector<vector<Point> > contours;
findContours(bin.clone(), contours, hierarchy, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE, Point(0, 0));
// Find the convex hull object of the external contour
vector<vector<Point> >hull( contours.size() );
for (int i = 0; i < contours.size(); i++)
{
Error here --> convexHull(Mat(contours[i]), hull[i], false);
}
... and am using the jni to use it on an Android project, but is having a conflict in function arguments "convexHull":
"Invalid arguments ' Candidates are: void convexHull(const cv::_InputArray &, const cv::_OutputArray &, bool, bool) '" I wonder how to get around this error ... I am using OpenCV version 2.4.9
Thanks!