Quantcast
Channel: MATLAB Central Newsreader - tag:"centerline"
Viewing all articles
Browse latest Browse all 15

Re: Edges from centerline

$
0
0
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <c79392c8-b627-445a-8ca5-a77b998dde60@m13g2000yqi.googlegroups.com>...
> I guess you need to march along the vessel fitting its coordinates to
> a line or quadratic or something - use polyfit. Then calculate the
> slope at the point you're on and get the perpendicular slope (it's -1/
> slope). Then go out a little ways (say 2 times your expected width)
> to get endpoint coordinates of the line that will cut across your
> vessel perpendicularly. Then use improfile() to get the intensity
> profile along this perpendicular line. Then determine where the
> vessel starts and stops. The distance between them is the width. I
> know you can do it, because I've done it. It's not that hard.


Thank you for the reply.

I had your same idea 2 days ago, but I'm not able to implement it in Matlab.
Can you give me a piece of code to do that, starting from the coordinates of the centerline?
However I don't have to compute the width of the vessel. I just have to save the set of coordinates of the 2 edges (the left and the right one to the centerline) of the vessel.
Cheers,

Alfonso

Viewing all articles
Browse latest Browse all 15

Trending Articles