summaryrefslogtreecommitdiff
path: root/src/Nerve_GIC/example
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-05 16:09:09 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-05 16:09:09 +0000
commit0c9fc1c2ed4302f80761e97e4c08a03f7043c857 (patch)
tree19e53f65dda47d94da4206b42017dafcad550b0d /src/Nerve_GIC/example
parent991a1b06c258f21845dab412174e25e05ebb362c (diff)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2404 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 317b90b79f730ea15282d3864ab20d10e148b6e0
Diffstat (limited to 'src/Nerve_GIC/example')
-rw-r--r--src/Nerve_GIC/example/simple_GIC.cpp12
1 files changed, 12 insertions, 0 deletions
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;