How to find the curvature of the Points on the boundary

조회 수: 10 (최근 30일)
harshal j
harshal j 2015년 12월 2일
댓글: Image Analyst 2021년 8월 17일
Hi, I have obtain the object boundries by using the bwboundaries commond in MATLAB. Now I want to calculate the curvature of the point for example set of b(i-5), b(i), b(i+5). b(i) is the point on the boundary and b(i-5) & b(i+5) are the neighbors of the point. here b(i-5) and b(i+5) are end point of the set. Also i would like to find the distance of the point b(i) from the straight line connecting the two end points b(i-5) & b(i+5) of the set. I don't know how to obtain straight line between b(i-5) & b(i+5). Also i don't know how to calculate the perpendicular distance from the point b(i) with the straight ling joining b(i-5) & b(i+5). Please help me to solve this problem. Thanks in advance
  댓글 수: 2
bilal zulfiqar
bilal zulfiqar 2021년 8월 17일
Hello Harshal,
Did you find the MATLAB code for this? I am also looking for the solution of similar problem. I want to first find the boundary coordinates and then finding the curvature for that.
Would be nice if you can help in this regards,

댓글을 달려면 로그인하십시오.

채택된 답변

Torsten
Torsten 2015년 12월 2일
  댓글 수: 3
harshal j
harshal j 2015년 12월 3일
Thank u so much for the link. It will definitely solve my problem. Thanks once again..!

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Image Analyst
Image Analyst 2015년 12월 2일
See Steve's presentation at ICIP http://blogs.mathworks.com/steve/files/MATLAB-Today-ICIP-2015-16x10-format-distribution-version-medium-quality-compression.pdf, and his discussion of alphaShape() and boundary(). Actually this should be a must read for everyone since it contains lots of good information on a wide variety of new functions.
  댓글 수: 5
harshal j
harshal j 2015년 12월 3일
Thank u so much for the answer Sir.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2015년 12월 2일
You can use code in the FAQ to fit a circle to the 3 points you get from bwboundaries():
You will get the radius of curvature for each triplet of points.
  댓글 수: 3
Bashar Ahmed
Bashar Ahmed 2017년 11월 25일
Hi dear Harshal, I have to solve the same problem. if you already solved it, please share the code with me. thanks in advance and best regards

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Bounding Regions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by