r/computervision • • Oct 18 '26

Help: Project Advice on identifying loop-like structures and measuring angles in 2D curves

Hi everyone,

I'm working on a scientific image-analysis problem where I have manually annotated 2D centerlines representing curving structures. I can extract the ordered coordinates of these paths, but I'm struggling to quantify certain geometric features reliably.

Some paths contain multiple tight turns or loop-like structures, while others have gentle bends. My main challenges are:

  • Identifying individual loops within a longer, irregular curve.
  • Distinguishing genuine loop-like structures from ordinary bends or crossings.
  • Measuring the opening angle of an irregular or asymmetric loop in a reproducible way.

I've experimented with spline fitting, curvature-based methods, turning-angle detection, and geometric fitting, but none has reliably identified the structures I want to measure.

I'd appreciate suggestions on suitable mathematical or computational geometry approaches for detecting these structures and defining their angles.

I'm particularly interested in methods that can be validated against manually identified examples, rather than simply producing a numerical result.

Thank you for any suggestions or references!

1 Upvotes

3 comments sorted by

1

u/[deleted] Oct 18 '26

[removed] — view removed comment

1

u/Signal-Structure-885 Oct 18 '26

Thanks, this might be helpful! I had not yet considered the winding-number approach. My paths can contain multiple turns and loops, so choosing the right window size sounds like an important challenge. Also, like working with closed loops and open loops at the same time.

I have been trying curvature and turning-angle methods, but they sometimes detect ordinary bends rather than the specific loop structures I am interested in. For the opening angle, I also see how estimating the tangent directions on either side could help.

Would you recommend using the winding number mainly to identify candidate loop regions first, and then estimating the opening angle separately for each candidate?