neurom.fst.sectionfunc.section_tortuosity

neurom.fst.sectionfunc.section_tortuosity(section)[source]

Tortuosity of a section

The tortuosity is defined as the ratio of the path length of a section and the euclidian distnce between its end points.

The path length is the sum of distances between consecutive points.

If the section contains less than 2 points, the value 1 is returned.