I want to calculate radius of curvature for 3 points in a 2D image

23 ビュー (過去 30 日間)
SANA
SANA 2022 年 11 月 28 日
回答済み: Mann Baidi 2023 年 9 月 1 日
Hi,
Please i have a 2D image with many cracks and i want to calculate radii of curvature for every crack to check the stress factor.
Kindly guide me with this.
Thanks

回答 (1 件)

Mann Baidi
Mann Baidi 2023 年 9 月 1 日
Hi Sana,
It seems that you want to find a function using which you can find the radius of curvature of 3 points in a 2D image. You can take the help of the following link. You can download the folder, Extract it and add the path to MATLAB. Then you can use the “curvature” function to find the radius of curvature.
Here is a small demonstration for the same:
radius=3;%just an example
theta=[0 90 180]%you can increase this if this isn't enough yet
x2=radius*cos(theta);
y2=radius*sin(theta);
X = [x2',y2'];
[L2,R2,K2] = curvature(X);
Hope this helps!

カテゴリ

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