MATLAB: How to create a circles (smallest and biggest circle) based on points in an image given, then find the center and radius

#circularity #center #radius

Hi,
I have extract some points from Image Scanning, I need to create 2 circle (smallest circle and largest circle) in order to calculate the error of circularity (Rmax – Rmin), in order to do that I need to find the center and radius. Did any have done this kind of case?
Below are some image as reference:
  1. Points extract from image scanning
test.GIF
2. Example of circles need to be done
example.GIF
Any help will be appreciated.
Thanks in advance

Best Answer

To get the minimal bounding outer circle, try this:
screenshot.jpg
I asked John for the largest interior circle, and he said that's a much more difficult problem and he doesn't have code for that.