Say I have two line segment paths, such as a subset of the examples below. How can I quantify the difference between them?
- |__
- \_
- __
- /\
- \/
- |
- _
The two paths may have a different number of segments, and the length of each segment and the angle between them is variable.
I was thinking it would be good to establish a coordinate system and define the segments as nodes and edges. The difference could perhaps be quantified by the operations needed to transform one into the other, similar to the Levenshtein distance algorithm. Unfortunately the operation space is huge. Any ideas? Thanks!