DGtal 1.4.0
Loading...
Searching...
No Matches
NeighborhoodConfigurations.h
1
31#if defined(NeighborhoodConfigurations_RECURSES)
32#error Recursive header files inclusion detected in NeighborhoodConfigurations.h
33#else // defined(NeighborhoodConfigurations_RECURSES)
35#define NeighborhoodConfigurations_RECURSES
36
37#if !defined NeighborhoodConfigurations_h
39#define NeighborhoodConfigurations_h
41// Inclusions
42#include <iostream>
43#include <bitset>
44#include <unordered_map>
45#include "boost/dynamic_bitset.hpp"
46#include <DGtal/base/CountedPtr.h>
47#include <DGtal/topology/helpers/NeighborhoodConfigurationsHelper.h>
48
49namespace DGtal {
50 namespace functions {
68 inline
70 loadTable(const std::string & input_filename, const unsigned int known_size, const bool compressed = true );
71
85 template<unsigned int dimension = 3>
86 inline
88 loadTable(const std::string & input_filename, const bool compressed = true);
89
111 template<typename TPoint>
112 inline
114 std::unordered_map<TPoint, NeighborhoodConfiguration > >
116
117 } // namespace functions
118} // namespace DGtal
119
120
122// Includes inline functions.
123#include "DGtal/topology/NeighborhoodConfigurations.ih"
124// //
126
127#endif // !defined NeighborhoodConfigurations_h
128
129#undef NeighborhoodConfigurations_RECURSES
130#endif // else defined(NeighborhoodConfigurations_RECURSES)
Aim: Smart pointer based on reference counts.
Definition CountedPtr.h:80
DGtal::CountedPtr< std::unordered_map< TPoint, NeighborhoodConfiguration > > mapZeroPointNeighborhoodToConfigurationMask()
DGtal::CountedPtr< boost::dynamic_bitset<> > loadTable(const std::string &input_filename, const unsigned int known_size, const bool compressed=true)
DGtal is the top-level namespace which contains all DGtal functions and types.