Drawing a circle to get radius from the binary results of image data

2 ビュー (過去 30 日間)
youssef mourad
youssef mourad 2016 年 2 月 28 日
回答済み: Image Analyst 2016 年 3 月 1 日
I would like to have a circle image then get the radius specified in binary form using ([A]=IMREAD(CIRCLE). The problem i have is that the image circle i draw isn't a perfect circle so i cannot calculate the radius of the circle.

採用された回答

Cam Salzberger
Cam Salzberger 2016 年 3 月 1 日
Hello Youssef,
There is actually an example in the Image Processing Toolbox documentation dedicated to detecting and measuring circles in an image. Since it's geared towards images with multiple circles, it has more functionality than you need, but it still walks you through the process nicely.
The heart of the functionality you need is in the "imfindcircles" function.
Hope this helps!
-Cam

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 3 月 1 日
There is a FAQ with code for creating a circle: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
I have an Image Segmentation Tutorial that shows you how to detect circles (coins) in an image and find their centroid and other measurements: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by