PDIST2 is not available here, please fix it
Thanks for bringing this to my attention LY Cao. The test suite has been fixed.
Fair warning to the challenger, we need to do some preprocessing for each image. There are black and white, grayscale, and color images within the test case set. I learned a lot from this problem, however...I found it very unsettling that I could not use functions from the image processing toolbox (I had to implement the Circle Hough transform myself).
Imho, the required precision should have been smaller: 5-pixel distance is absurd when one has rubber bands in an image that are not perfect circles. Or, at least, the test cases should allow that we return any number of circles and radii (it is easy to test if the desired circles are within the returned results).
100% precision/recall, but using N so no pat in the back for me
I've got precision 100% for most of the test cases. Colored images were the hardest.
Combination of LY Cao's and mine code. 98.5% precision and recall in total (one circle in test 4 didn't fit in tolerance), without using N. That was fun :)
Back to basics 14 - Keywords
Calculate the area of a triangle between three points
Get the elements of diagonal and antidiagonal for any m-by-n matrix
ismember: Enhanced Time Performance for 'rows' - Speed Scoring (90% savings)
Check if a directory is on the current MATLAB search path
Return elapsed time
Cumulative maximum of an array
Calculate the Hamming distance between two strings
Maximum of each diagonal
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office