-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cv::cuda::HoughCirclesDetector and cv::HoughCircles do not give the same results #7830
Comments
I did not mention why I would like to see the same results : |
GPU-based algorithms with "bit-exact" results are usually very ineffective (except very simple cases). Usage questions should go to User Q/A forum: http://answers.opencv.org |
I am not sure to understand what you mean. |
I mean that in general your should not expect "the same" results from CPU and GPU algorithms. If you have evidences that there is real bug in implementation then please open a ticket with details. |
I think I have found evidences of a real difference in implementation, but it this a bug ? the CPU version reports 1 circle because the "minDistance" parameter is used while trying to find the best radii. Those are two different interpretations of the minDistance parameter, because the doc does not tell how it should handle concentric circles. |
Hello,
System information (version)
OpenCV 3.1.0, Windows 7 64 bits, Visual Studio 2010, Cuda 8
Detailed description
I have noticed that for a similar input, cv::cuda::HoughCirclesDetector and cv::HoughCircles do not give the same results. I am not sure if it is normal, because the documentation does not tell that it should be the case (algorithms may be different).
However, it would be convenient, either to fix it, or explain how to circumvent it by adapting the parameters.
Steps to reproduce
Image provided as attachement, and here is a sample code :
Output result :
CPU circles :
(165.500000,329.500000,56.925388)
GPU circles :
(165.500000,328.500000,100.000000)(165.500000,328.500000,56.000000)(165.500000,3
28.500000,60.000000)(165.500000,328.500000,65.000000)(165.500000,328.500000,73.0
00000)(165.500000,328.500000,87.000000)(165.500000,328.500000,151.000000)(165.50
0000,328.500000,178.000000)(165.500000,328.500000,180.000000)(165.500000,328.500
000,183.000000)(165.500000,328.500000,185.000000)(165.500000,328.500000,187.0000
00)(165.500000,328.500000,190.000000)(165.500000,328.500000,224.000000)
The text was updated successfully, but these errors were encountered: