diff options
Diffstat (limited to 'src/Nerve_GIC/test/test_GIC.cpp')
-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); } - +*/ |