Cody

Problem 42616. Detect circles in images

Created by Matthew Eicholtz in Community

Given an image and a target radius range, specified as [rmin rmax], find circles in the image. Your function should output an m-by-2 array of circle centers (x,y positions in the image) and an m-by-1 vector of radii corresponding to m circles.

Your detector will be judged on its precision and recall. The recall must be 0.75 or higher and the precision must be 0.5 or higher to pass.

For example, if an image has 4 true circles, you can miss at most 1 of the circles and have at most 4 false detections.

Additional notes:

  • Circles can be brighter or darker than the background.
  • A detection is considered a match if its position and radius is within 5 pixels of a true circle.
  • To make things easier, the target number of circles (N) is provided as an input. Pat yourself on the back if you do not need it.

Solution Stats

40.0% Correct | 60.0% Incorrect
Last solution submitted on Jan 23, 2019

Problem Comments

Solution Comments

Recent Solvers3

Suggested Problems

More from this Author46

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!