I have a picture with a curved body. Now I need to get the length of some curves on the body. How to do that with Matlab? One thing to do is to determine the mask of the curve and thus the coordinate on this curve. Anybody knows how to do it?
But CSCVN can work only if I have the coordinates on the curve I want. Now I have to first find the coordinate on the curve. Now if I have a picture, first we need to find/determine the curve, and then find the coordinates on these curve.
Seems to me you're going about it backwards. The first thing you should be doing is to digitize the curve and apply the correct scaling to get valid values long the curve.
Then, you can simply brute force the arc length using pairwise segment lengths.
Suppose that I have got the coordinates of points along the curve from one end to the other. And I use spline to fit the coordinate data. So now I need to obtain the length of the spline curve. How to do that?
In this problem, I also need to break the curve into three parts and calculate their lengths individually. The reason is that y-x curve is not one-to-one curve (one x can have two y values and vice versa).