Function graspi::determine_and_print_tortuosity¶
Function Documentation¶
-
double
graspi
::
determine_and_print_tortuosity
(const graspi::vertex_colors_t &vertex_colors, const dim_a_t &d_a, double pixelsize, const std::vector<float> &d, const std::string &filename_t, const std::string &filename_id_t, unsigned int c_source, unsigned int c_target)¶ The function to determine and print 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 Gd_a
: is the reference to the struct storing dimensions of the morphology represented as a arraypixelsize
: 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)filename_t
: is the name of the file to save the toruosity of pathways analyzedfilename_id_t
: is the name of the file to save the index and the tortuosity of pathways analyzedc_source
: is the color/label of the source vertexc_target
: is the color/label of the targetted vertices