Perimeter and area of the Circle

1 view (last 30 days)
Hello..:) my problem is to get the perimeter and area of the circle.. here is my binary image..
i still new with matlab..any very greatful for those who are helping me please help me by giving ur idea or suggestion for the coding..thx for ur time..:)

Accepted Answer

Image Analyst
Image Analyst on 7 Apr 2015
The steps:
  1. Crop out just the middle of the image to get rid of the straight lines.
  2. Call labeledImage = bwlabel(binaryImage)
  3. Call regionprops(labeledImage, 'PixelList') to get the (x,y) coordinates of each ring.
  4. For each ring, fit the coordinates to a circle with the FAQ
Let me know if you still need help after this. If so, attach your code.
  5 Comments
Image Analyst
Image Analyst on 14 Apr 2015
You just need to multiply by a calibration scale factor. See my attached spatial calibration demo.
ahmad  aizat
ahmad aizat on 18 Apr 2015
Sir..i have study about the spatial calibration demo but do i need to draw the line manually? i still confuse on how to convert it sir..please help me..:(
For your information..the distance of the camera to the object is 300mm and the picture size is 640x480.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!