Commit 447005017ab7a264e91eee38d13095e2f7841021

Authored by pranathivemuri
1 parent 66c20862

program to generate geometry metric for netmets

Showing 1 changed file with 23 additions and 0 deletions   Show diff stats
main.cpp 0 → 100644
  1 +#include <stdlib.h>
  2 +#include <string>
  3 +#include <fstream>
  4 +#include <algorithm>
  5 +#include <stim/visualization/network.h>
  6 +
  7 +#include <ANN/ANN.h>
  8 +#include <boost/tuple/tuple.hpp>
  9 +using namespace stim;
  10 +//template <typename T>
  11 +
  12 +int main(int argc, char* argv[])
  13 +{
  14 + std::string groundTruth = argv[1];
  15 + std::string truthCase = argv[2];
  16 + stim::network<int> network;
  17 + boost::tuple< ANNkd_tree*, ANNkd_tree*, stim::network<int>, stim::network<int> > networkKdtree;
  18 + networkKdtree = network.LoadNetworks(groundTruth, truthCase);
  19 + /*std::cout<<networkKdtree.get< 2>().edges_to_str()<<endl;*/
  20 + boost::tuple< float, float > metrics = network.compareSkeletons(networkKdtree);
  21 + std::cout << "False postive rate is " << metrics.get< 0>() << std::endl;
  22 + std::cout << "False negative rate is " << metrics.get< 1>() << std::endl;
  23 +}
... ...