48 #include "DGtal/helpers/StdDefs.h"
49 #include "DGtal/topology/VoxelComplexFunctions.h"
50 #include "DGtal/topology/tables/NeighborhoodTablesGenerators.h"
55 using namespace DGtal;
61 int main(
int argc,
char** argv )
73 "Provide one of the following arguments for select function:\n"
78 cout << error_message << std::endl;
81 std::string input_str = std::string(argv[1]);
82 if (input_str ==
"skelIsthmus")
83 skelFunction = functions::skelIsthmus<VoxelComplex>;
84 else if (input_str ==
"oneIsthmus")
85 skelFunction = functions::oneIsthmus<VoxelComplex>;
86 else if (input_str ==
"twoIsthmus")
87 skelFunction = functions::twoIsthmus<VoxelComplex>;
89 cout << error_message << endl;
93 trace.
beginBlock (
"Generate " + input_str +
" table for 26_6 topology" );
95 auto table26_6 = make_shared<ConfigMap>();
96 functions::generateVoxelComplexTable< VoxelComplex >(
100 string filename = input_str +
"_table26_6.txt";
101 trace.
info() <<
"Save to file... " + filename << std::endl;
102 ofstream file26_6( filename );
103 file26_6 << *table26_6;
void beginBlock(const std::string &keyword="")
This class represents a voxel complex living in some Khalimsky space. Voxel complexes are derived fro...
typename KSpace::Cell Cell
std::vector< bool > ConfigMap
int main(int argc, char **argv)
DGtal is the top-level namespace which contains all DGtal functions and types.