48#include "DGtal/helpers/StdDefs.h"
49#include "DGtal/topology/VoxelComplexFunctions.h"
50#include "DGtal/topology/tables/NeighborhoodTablesGenerators.h"
61int 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")
84 else if (input_str ==
"oneIsthmus")
86 else if (input_str ==
"twoIsthmus")
89 cout << error_message << endl;
93 trace.
beginBlock (
"Generate " + input_str +
" table for 26_6 topology" );
95 auto table26_6 = make_shared<ConfigMap>();
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
bool skelIsthmus(const TComplex &vc, const typename TComplex::Cell &cell)
void generateVoxelComplexTable(TMap &map, std::function< bool(const TVoxelComplex &, const typename TVoxelComplex::Cell &) > skelFunction)
bool twoIsthmus(const TComplex &vc, const typename TComplex::Cell &cell)
bool oneIsthmus(const TComplex &vc, const typename TComplex::Cell &cell)
DGtal is the top-level namespace which contains all DGtal functions and types.