How to scan a circle that is drawn over an image object?
Show older comments
A circle is drawn over a binary image object using plot. After this drawn I again want to scan this circle and want to store its circumference coordinates points to an array. How to do that?
4 Comments
Walter Roberson
on 14 Jul 2018
Would it be acceptable to retrieve the handle of the line object created by plot and extract the data from there? Or is it required that you capture the axes as an image and do circle detection on the image?
Walter Roberson
on 14 Jul 2018
Edited: Walter Roberson
on 14 Jul 2018
Quantize the coordinates to integers, and take the unique pairs. No drawing required. If you need them in order, you can use boundary() or you can subtract the centroid so that the points circle the centroid, and then convert to polar coordinates, and sort by angle.
Accepted Answer
More Answers (0)
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!