Commit 1980985894945d600ec28f07983271ed5e58dd0c

Authored by pranathivemuri
1 parent 1b78fd76

prints out average lengths and torutoisity in the networks

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
main.cpp
... ... @@ -249,7 +249,15 @@ int main(int argc, char* argv[])
249 249 num_nets = 2; //set the number of networks to two
250 250 float sigma = args["sigma"].as_float(); //get the sigma value from the user
251 251 T.load_obj(args.arg(1)); //load the second (test) network
252   -
  252 + double avgL, avgT;
  253 + avgL = GT.Lengths();
  254 + avgT = GT.Tortuosities();
  255 + std::cout<<avgL<<"---average segment length in the ground truth network"<<std::endl;
  256 + std::cout<<avgT<<"---average segment tortuosity in the ground truth network"<<std::endl;
  257 + avgL = T.Lengths();
  258 + avgT = T.Tortuosities();
  259 + std::cout<<avgL<<"---average segment length in the truth network"<<std::endl;
  260 + std::cout<<avgT<<"---average segment tortuosity in the truth network"<<std::endl;
253 261 GT = GT.resample(resample_rate * sigma); //resample both networks based on the sigma value
254 262 T = T.resample(resample_rate * sigma);
255 263  
... ...