Function graspi::determine_tortuosity

Function Documentation

double graspi::determine_tortuosity(const graspi::vertex_colors_t &vertex_colors, const dim_a_t &d_a, double pixelsize, const std::vector<float> &d, unsigned int c_source, unsigned int c_target)

The function to determine the tortuosity of paths between source and target vertices

Return

the fraction of straight rising paths (with toruosity = 1)

Parameters
  • vertex_colors: is the reference to the vector storing the labels/colors of vertices in the graph G

  • d_a: is the reference to the struct storing dimensions of the morphology represented as a array

  • pixelsize: is the physical unit of the voxel (distances will be rescaled according to this value)

  • d: is the reference to the vector of path length (distances)

  • c_source: is the color/label of the source vertex

  • c_target: is the color/label of the targetted vertices