31 #if defined(BinomialConvolver_RECURSES)
32 #error Recursive header files inclusion detected in BinomialConvolver.h
33 #else // defined(BinomialConvolver_RECURSES)
35 #define BinomialConvolver_RECURSES
37 #if !defined BinomialConvolver_h
39 #define BinomialConvolver_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/math/Signal.h"
72 template <
typename TConstIteratorOnPo
ints,
typename TValue =
double>
79 typedef typename ConstIteratorOnPoints::value_type
Point;
101 void setSize(
unsigned int n );
107 unsigned int size()
const;
128 void init(
const double h,
131 const bool isClosed );
150 std::pair<Value,Value>
x(
int i )
const;
158 std::pair<Value,Value>
dx(
int i )
const;
166 std::pair<Value,Value>
d2x(
int i )
const;
174 std::pair<Value,Value>
tangent(
int i )
const;
258 template <
typename TBinomialConvolver,
typename TRealPo
int>
290 template <
typename TBinomialConvolver,
typename TReal>
323 template <
typename TBinomialConvolver,
typename TBinomialConvolverFunctor>
345 void init(
const double h,
348 const bool isClosed =
true );
359 template <
typename OutputIterator>
362 OutputIterator result );
378 template <
typename TConstIteratorOnPo
ints,
typename TValue >
388 #include "DGtal/geometry/curves/BinomialConvolver.ih"
393 #endif // !defined BinomialConvolver_h
395 #undef BinomialConvolver_RECURSES
396 #endif // else defined(BinomialConvolver_RECURSES)
TConstIteratorOnPoints ConstIteratorOnPoints
Aim: This class encapsulates a BinomialConvolver and a functor on BinomialConvolver so as to be a mod...
TBinomialConvolver::Value SignalValue
ConstIteratorOnPoints myEnd
Copy of the end iterator.
TBinomialConvolver::ConstIteratorOnPoints ConstIteratorOnPoints
BinomialConvolverEstimator(unsigned int n=0, const BinomialConvolverFunctor &f=BinomialConvolverFunctor())
unsigned int size() const
TBinomialConvolver::Value SignalValue
ConstIteratorOnPoints myBegin
Copy of the begin iterator.
TBinomialConvolver::ConstIteratorOnPoints ConstIteratorOnPoints
void setSize(unsigned int n)
Aim: This class is a functor for getting the tangent vector of a binomial convolver.
BinomialConvolverFunctor::Value Value
Quantity eval(const ConstIterator &it)
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: This class is a functor for getting the curvature of a binomial convolver.
TBinomialConvolver BinomialConvolver
Aim: This class represents a 2D contour convolved by some binomial. It computes first and second orde...
BinomialConvolver & operator=(const BinomialConvolver &other)
static unsigned int suggestedSize(const double h, const ConstIteratorOnPoints &itb, const ConstIteratorOnPoints &ite)
BinomialConvolver(unsigned int n=1)
TBinomialConvolver BinomialConvolver
BinomialConvolverFunctor myFunctor
TBinomialConvolverFunctor BinomialConvolverFunctor
DGtal is the top-level namespace which contains all DGtal functions and types.
std::map< ConstIteratorOnPoints, int > myMapIt2Idx
void init(const double h, const ConstIteratorOnPoints &itb, const ConstIteratorOnPoints &ite, const bool isClosed)
TBinomialConvolver BinomialConvolver
BinomialConvolver::ConstIteratorOnPoints ConstIteratorOnPoints
ConstIteratorOnPoints::value_type Point
Value curvature(int i) const
void init(const double h, const ConstIterator &itb, const ConstIterator &ite, const bool isClosed=true)
std::pair< Value, Value > tangent(int i) const
Value operator()(const BinomialConvolver &bc, const ConstIteratorOnPoints &it) const
ConstIteratorOnPoints ConstIterator
int index(const ConstIteratorOnPoints &it) const
std::pair< Value, Value > d2x(int i) const
Value operator()(const BinomialConvolver &bc, const ConstIteratorOnPoints &it) const
void selfDisplay(std::ostream &out) const
std::pair< Value, Value > dx(int i) const
std::pair< Value, Value > x(int i) const