Find radius of circle and find curvature from images

4 ビュー (過去 30 日間)
autumn
autumn 2021 年 5 月 26 日
コメント済み: autumn 2021 年 5 月 26 日
Hello,
I am struggling to find 1) radius of the below two circles and 2) curvature of the boundary.
About 1) problem, I tried several builin function like starts = regionprops(), viscircles(centers,radii), and imfindcircles(), but apprently I am missing something.
I think that this issue could happen because more than half of the circle is not presented in the image.
About 2) problem,
I want to find the radius of the curvature in the yellow region. Using given codes in this community, I could find the boundary line, but I am unsure what to do next.
Any help, hints or helpful links would be appreciated.

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 26 日
Hi,
Have you reviewed this help doc of mathworks on circle identification in images?
https://www.mathworks.com/help/images/detect-and-measure-circular-objects-in-an-image.html
  1 件のコメント
autumn
autumn 2021 年 5 月 26 日
Hi,
I tried using the first image like below.
clear all
clc
I=imread('Picture1.png');
B=rgb2gray(I);
B = imbinarize(B); imshow(B); hold on
[centers,radii] = imfindcircles('ObjectPolarity','dark', ...
'Sensitivity',0.92,'Method','twostage');
viscircles(centers,radii);
hold off
but I had this error. What does this mean?..
----------------------------------------
Error using imfindcircles>parseInputs (line 240)
The value of 'Image' is invalid. Expected input number 1, A, to be one of these types:
uint8, uint16, double, logical, single, int16
Error in imfindcircles (line 142)
parsedInputs = parseInputs(varargin{:});

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by