31 #if defined(ArithmeticalDSLKernel_RECURSES)
32 #error Recursive header files inclusion detected in ArithmeticalDSLKernel.h
35 #define ArithmeticalDSLKernel_RECURSES
37 #if !defined ArithmeticalDSLKernel_h
39 #define ArithmeticalDSLKernel_h
44 #include "DGtal/base/Common.h"
46 #include "DGtal/kernel/SpaceND.h"
47 #include "DGtal/kernel/NumberTraits.h"
89 template <
typename TCoordinate,
90 unsigned short adjacency = 8>
107 typedef std::pair<Vector, Vector>
Steps;
142 template <
typename TInteger>
169 template <
typename TInteger>
182 template<
typename TInteger>
183 static TInteger
norm(
const TInteger& a,
const TInteger& b);
189 template <
typename TCoordinate>
196 typedef std::pair<Vector, Vector>
Steps;
213 template <
typename TInteger>
215 template <
typename TInteger>
217 template<
typename TInteger>
218 static TInteger
norm(
const TInteger& a,
const TInteger& b);
227 #include "DGtal/geometry/curves/ArithmeticalDSLKernel.ih"
234 #undef ArithmeticalDSLKernel_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
static Steps steps(const TInteger &a, const TInteger &b)
SpaceND< 2, TCoordinate > Space
BOOST_STATIC_CONSTANT(unsigned short, ForegroundAdjacency=4)
BOOST_STATIC_CONSTANT(unsigned short, BackgroundAdjacency=8)
static TInteger norm(const TInteger &a, const TInteger &b)
static Vector shift(const TInteger &a, const TInteger &b)
std::pair< Vector, Vector > Steps
Aim: Small class that contains the code that depends on the arithmetical thickness (either naive or s...
BOOST_STATIC_CONSTANT(unsigned short, BackgroundAdjacency=4)
static TInteger norm(const TInteger &a, const TInteger &b)
BOOST_STATIC_CONSTANT(unsigned short, ForegroundAdjacency=8)
static Vector shift(const TInteger &a, const TInteger &b)
std::pair< Vector, Vector > Steps
static Steps steps(const TInteger &a, const TInteger &b)
SpaceND< 2, TCoordinate > Space