Quantcast
Viewing latest article 6
Browse Latest Browse All 15

Re: Edges from centerline

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.

Viewing latest article 6
Browse Latest Browse All 15

Trending Articles