Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

hi ,

i am using this method to detect circles using contours in android jni ,

std::vector<cv::point2f> center(contours.size() ); std::vector<cv::vector<cv::point> > contours_poly( contours.size() ); std::vector<float>radius( contours.size() ); for(int i=0;i<contours.size;i++){ minenclosingcircle(mat(contours_poly[i]),cv::point_<float="">(center[i]),radius[i]);

}

but getting this error : Invalid arguments ' Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)'

thanks

click to hide/show revision 2
No.2 Revision

updated 2015-05-15 08:05:11 -0600

berak gravatar image

Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

hi ,

i am using this method to detect circles using contours in android jni ,

std::vector<cv::point2f>

 std::vector<cv::Point2f> center(contours.size() );
 std::vector<cv::vector<cv::point> std::vector<cv::vector<cv::Point> > contours_poly( contours.size() );
 std::vector<float>radius( contours.size() ); 
 for(int i=0;i<contours.size;i++){ minenclosingcircle(mat(contours_poly[i]),cv::point_<float="">(center[i]),radius[i]); 

i=0;i<contours.size;i++){ minEnclosingCircle(Mat(contours_poly[i]),cv::Point_<float>(center[i]),radius[i]); }

}


but getting this error : Invalid arguments ' Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)'

thanks