I have just followed an example on OpenCiv to detect the circle
Vector & lt; Ve3f & gt; Circles; Apply Hough conversion to find /// Circles HoughCircles (src_gray, Circles, CV_HOUGH_GRADIENT, 1, src_gray.rows / 8, 200, 100, 0, 0); Attract the detected cycles for /// (size_t i = 0; i & lt; circles.size (); i ++) {point centre (circle [i] [0]), severade (circle [ I] [1])); Int radius = seared (circle [ii] [2]); However, the Eclipse function is not accepting the call when it is functioning
cvRound (circles [i] [0]) invalid Logic 'candidates are: int cvRound (double)' I have tried to add properties in which there are several directories for gnu c and c ++. I - & gt; C / C ++ Normal - & gt; For example path and symbols
ndkroot / sources / cxx-stl .... / include
country / jni / include for opencv etc
< /
But still do not accept the cvRound function, is there something wrong?
thx first
The cvRound function to convert only double values to integer There is a circular function. Two ways:
1- You can do your own spherical work and use it.
int round {double x} {int y; If (x> = (int) x + 0,5) y = (int) x ++; Else y = (int) x; Return y; } 2- Not only add C ++ but also OpenCV's C API. (/ Include Opencv /)
No comments:
Post a Comment