From 0c9fc1c2ed4302f80761e97e4c08a03f7043c857 Mon Sep 17 00:00:00 2001 From: mcarrier Date: Fri, 5 May 2017 16:09:09 +0000 Subject: git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2404 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 317b90b79f730ea15282d3864ab20d10e148b6e0 --- src/Nerve_GIC/example/simple_GIC.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Nerve_GIC/example') diff --git a/src/Nerve_GIC/example/simple_GIC.cpp b/src/Nerve_GIC/example/simple_GIC.cpp index f7a87e85..8b3aecb8 100644 --- a/src/Nerve_GIC/example/simple_GIC.cpp +++ b/src/Nerve_GIC/example/simple_GIC.cpp @@ -12,6 +12,7 @@ int main(int argc, char **argv) { std::string off_file_name(argv[1]); double threshold = atof(argv[2]); + //std::string func_file_name = argv[3]; int coord = atoi(argv[3]); double resolution = atof(argv[4]); double gain = atof(argv[5]); @@ -30,12 +31,23 @@ int main(int argc, char **argv) { GIC.set_graph_from_automatic_rips(100, off_file_name); //GIC.set_graph_from_rips(threshold, off_file_name); //GIC.set_graph_from_OFF(off_file_name); + GIC.set_function_from_coordinate(coord, off_file_name); + //GIC.set_function_from_file(func_file_name); + + GIC.set_color_from_coordinate(coord, off_file_name); + //GIC.set_color_from_file(func_file_name); + resolution = GIC.set_automatic_resolution_for_GICMAP(); + GIC.set_cover_from_function(resolution,gain,1); + //GIC.find_GIC_simplices(); //GIC.find_Nerve_simplices(); GIC.find_GICMAP_simplices_with_functional_minimal_cover(); + + GIC.plot_with_KeplerMapper(); + Simplex_tree stree; GIC.create_complex(stree); std::streambuf* streambufffer; -- cgit v1.2.3