diff options
author | mcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-05-13 16:14:33 +0000 |
---|---|---|
committer | mcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-05-13 16:14:33 +0000 |
commit | 47b98207fa51f6a05094334ebf4471968a1bc526 (patch) | |
tree | ce7b39e14c6aed87854a192b53c75738859c787f /src/Nerve_GIC/test | |
parent | 39aa69c8b968f9f86a71106d64785b0f31c20914 (diff) |
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2415 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 24964dc19f3bf6646ac5c8218b12714f4821cadc
Diffstat (limited to 'src/Nerve_GIC/test')
-rw-r--r-- | src/Nerve_GIC/test/test_GIC.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Nerve_GIC/test/test_GIC.cpp b/src/Nerve_GIC/test/test_GIC.cpp index 1ca44f19..baf494e3 100644 --- a/src/Nerve_GIC/test/test_GIC.cpp +++ b/src/Nerve_GIC/test/test_GIC.cpp @@ -40,9 +40,10 @@ bool are_almost_the_same(float a, float b) { BOOST_AUTO_TEST_CASE(check_nerve) { Gudhi::graph_induced_complex::Graph_induced_complex GIC; + std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name); std::string cover_file_name("data/cover"); GIC.set_cover_from_file(cover_file_name); - std::string cloud_file_name("data/cloud"); GIC.set_color_from_file(cloud_file_name); + GIC.set_color_from_coordinate(); GIC.find_Nerve_simplices(); Simplex_tree stree; GIC.create_complex(stree); BOOST_CHECK(stree.num_vertices() == 3); @@ -53,9 +54,10 @@ BOOST_AUTO_TEST_CASE(check_nerve) { BOOST_AUTO_TEST_CASE(check_GICMAP) { Gudhi::graph_induced_complex::Graph_induced_complex GIC; GIC.set_verbose(1); + std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name); std::string cover_file_name("data/cover"); GIC.set_cover_from_file(cover_file_name); - std::string cloud_file_name("data/cloud"); GIC.set_color_from_file(cloud_file_name); + GIC.set_color_from_coordinate(); GIC.find_GICMAP_simplices_with_functional_minimal_cover(); Simplex_tree stree; GIC.create_complex(stree); BOOST_CHECK(stree.num_vertices() == 3); @@ -66,9 +68,10 @@ BOOST_AUTO_TEST_CASE(check_GICMAP) { BOOST_AUTO_TEST_CASE(check_GICcover) { Gudhi::graph_induced_complex::Graph_induced_complex GIC; + std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name); std::string cover_file_name("data/cover"); GIC.set_cover_from_file(cover_file_name); - std::string cloud_file_name("data/cloud"); GIC.set_color_from_file(cloud_file_name); + GIC.set_color_from_coordinate(); GIC.find_GIC_simplices(); Simplex_tree stree; GIC.create_complex(stree); BOOST_CHECK(stree.num_vertices() == 3); @@ -76,17 +79,19 @@ BOOST_AUTO_TEST_CASE(check_GICcover) { BOOST_CHECK(stree.dimension() == 2); } +/* BOOST_AUTO_TEST_CASE(check_GICvoronoi) { Gudhi::graph_induced_complex::Graph_induced_complex GIC; - std::string cloud_file_name("data/cloud"); GIC.set_color_from_coordinate(cloud_file_name); + std::string cloud_file_name("data/cloud"); GIC.read_point_cloud(cloud_file_name); + GIC.set_color_from_coordinate(); std::string graph_file_name("data/graph"); GIC.set_graph_from_file(graph_file_name); - GIC.set_cover_from_Voronoi(2,cloud_file_name); + GIC.set_cover_from_Voronoi(2); GIC.find_GIC_simplices(); Simplex_tree stree; GIC.create_complex(stree); BOOST_CHECK(stree.num_vertices() == 2); BOOST_CHECK((stree.num_simplices()-stree.num_vertices()) == 1); BOOST_CHECK(stree.dimension() == 1); } - +*/ |