diff options
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_heat_maps/create_persistence_heat_maps.cpp')
-rw-r--r-- | src/Persistence_representations/utilities/persistence_heat_maps/create_persistence_heat_maps.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Persistence_representations/utilities/persistence_heat_maps/create_persistence_heat_maps.cpp b/src/Persistence_representations/utilities/persistence_heat_maps/create_persistence_heat_maps.cpp index ebc82f82..bd5ec89a 100644 --- a/src/Persistence_representations/utilities/persistence_heat_maps/create_persistence_heat_maps.cpp +++ b/src/Persistence_representations/utilities/persistence_heat_maps/create_persistence_heat_maps.cpp @@ -22,14 +22,14 @@ #include <gudhi/Persistence_heat_maps.h> -using namespace Gudhi; -using namespace Gudhi::Persistence_representations; - #include <iostream> #include <sstream> #include <limits> #include <vector> +using constant_scaling_function = Gudhi::Persistence_representations::constant_scaling_function; +using Persistence_heat_maps = Gudhi::Persistence_representations::Persistence_heat_maps<constant_scaling_function>; + int main(int argc, char** argv) { std::cout << "This program creates persistence heat map of diagrams provided as an input.\n"; std::cout << "The first parameter of a program is an integer, a size of a grid.\n"; @@ -65,12 +65,11 @@ int main(int argc, char** argv) { } std::cout << "Creating persistence heat maps...\n"; - std::vector<std::vector<double> > filter = create_Gaussian_filter(stdiv, 1); + std::vector<std::vector<double> > filter = Gudhi::Persistence_representations::create_Gaussian_filter(stdiv, 1); for (size_t i = 0; i != filenames.size(); ++i) { std::cout << "Creating a heat map based on a file : " << filenames[i] << std::endl; - Persistence_heat_maps<constant_scaling_function> l(filenames[i], filter, false, size_of_grid, min_, max_, - dimension); + Persistence_heat_maps l(filenames[i], filter, false, size_of_grid, min_, max_, dimension); std::stringstream ss; ss << filenames[i] << ".mps"; |