Computing the curvature of a boundary
1 次查看(过去 30 天)
显示 更早的评论
In the following figure I computed the area of the object using the function "regioprops". Moreover I was asked to determine the curvature of the boundaries so my plan is the following: 1) Extract the x and y 2) fit the points into a curve (function). 3)Using a mathematical equation found in the literature which include the firt and second derivative, I will compute the curvature of the boundary
Can you please share with me your view concerning this plan, and if you are thinking of a better one, I will be glad to listen. Thanks
Note: I wanted to attach the image but I could not.(may I am not doing it right)
1 个评论
Image Analyst
2012-7-14
Post your picture to tinypic.com or similar. The curvature may change value from point to point. Your curvature will be the average curvature over the entire region you used - I assume you already know that though. What is your formula? Something on http://en.wikipedia.org/wiki/Curvature?
回答(1 个)
Matt Kindig
2012-7-13
Hi Said,
I have done something similar. Here's one approach: If you have the Spline Fitting Toolbox, you can use the periodic spline fitting tools to fit a piecewise cubic function to the x and y coordinates. By enforcing periodicity, you will be able to guarantee continuity of the first and second derivatives at the boundary. You can then easily calculate the curvature of each of the spline segments.
If you don't have the Spline Fitting Toolbox, you can still fit a periodic spline using the 'splinefit' function on the File Exchange.
Does this make sense?
Good luck, Matt
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!