Computing the curvature of a boundary
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Image Analyst
el 14 de Jul. de 2012
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?
Respuestas (1)
Matt Kindig
el 13 de Jul. de 2012
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
Ver también
Categorías
Más información sobre Splines en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!