我刚刚关注了关于圆检测的opencv示例http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.html
vector<Vec3f> circles;
/// Apply the Hough Transform to find the circles
HoughCircles( src_gray, circles, CV_HOUGH_GRADIENT, 1, src_gray.rows/8, 200, 100, 0, 0 );
/// Draw the circles detected
for( size_t i = 0; i < circles.size(); i++ )
{
Point center(cvRound(circles[i][0]), cvRound(circles[i][1]));
int radius = cvRound(circles[i][2]);
...
但是,我有 eclipse 的项目不接受函数调用
cvRound(圆圈[i][0])
Invalid arguments ' Candidates are: int cvRound(double) '
我试图在属性-> c/c++ 通用-> 路径和符号中添加包括许多 gnu c 和 c++ 的目录
ndkroot/sources/cxx-stl..../include
本机/jni/include
对于opencv等
但它仍然不接受 cvRound 函数,我缺少什么吗?
提前谢谢