Commit 03c5492bcfc78bfaec92df320f1c1d8313ea52c9

Authored by pranathivemuri
1 parent 44700501

networks and kd trees generated now are subdivided ones, hence _obj doesn't work the same

Showing 1 changed file with 9 additions and 5 deletions   Show diff stats
main.cpp
... ... @@ -8,16 +8,20 @@
8 8 #include <boost/tuple/tuple.hpp>
9 9 using namespace stim;
10 10 //template <typename T>
  11 +network<float>* network1;
  12 +
11 13  
12 14 int main(int argc, char* argv[])
13 15 {
14 16 std::string groundTruth = argv[1];
15 17 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);
  18 + //stim::network<int> network;
  19 + boost::tuple< ANNkd_tree*, ANNkd_tree*, stim::network<float>, stim::network<float> > networkKdtree;
  20 + networkKdtree = network1->LoadNetworks(groundTruth, truthCase);
  21 + //std::cout<<networkKdtree.get< 2>().edges_to_str()<<std::endl;
  22 + networkKdtree.get< 2>().to_obj();
  23 + //networkKdtree.get< 2>()
  24 + boost::tuple< float, float > metrics = network1->compareSkeletons(networkKdtree);
21 25 std::cout << "False postive rate is " << metrics.get< 0>() << std::endl;
22 26 std::cout << "False negative rate is " << metrics.get< 1>() << std::endl;
23 27 }
... ...