DGtal  1.1.0
TrueLocalEstimatorOnPoints.h
1 
17 #pragma once
18 
34 #if defined(TrueLocalEstimatorOnPoints_RECURSES)
35 #error Recursive header files inclusion detected in TrueLocalEstimatorOnPoints.h
36 #else // defined(TrueLocalEstimatorOnPoints_RECURSES)
37 
38 #define TrueLocalEstimatorOnPoints_RECURSES
39 
40 #if !defined TrueLocalEstimatorOnPoints_h
41 
42 #define TrueLocalEstimatorOnPoints_h
43 
45 // Inclusions
46 #include <iostream>
47 #include "DGtal/base/Common.h"
49 
50 namespace DGtal
51 {
53  // template class TrueLocalEstimatorOnPoints
65  template <typename TConstIteratorOnPoints,
66  typename TParametricShape,
67  typename TParametricShapeFunctor>
69  {
70 
71  // ----------------------- Types ------------------------------
72  public:
73 
74  typedef TConstIteratorOnPoints ConstIterator;
75 
76  typedef TParametricShape ParametricShape;
78 
79  typedef TParametricShapeFunctor ParametricShapeFunctor;
80  typedef typename ParametricShapeFunctor::Quantity Quantity;
81 
82 
83  // ----------------------- Standard services ------------------------------
84  public:
85 
90 
95 
100 
105 
106  // ----------------------- Interface --------------------------------------
107  public:
108 
113  void attach(const ParametricShape& aShape);
114 
121  Quantity eval(const ConstIterator& it, const double h = 1.) const;
122 
131  template <typename OutputIterator>
132  OutputIterator eval(const ConstIterator& itb,
133  const ConstIterator& ite,
134  OutputIterator result,
135  const double h = 1.) const;
136 
141  bool isValid() const;
142 
143  // ------------------------- Private Datas --------------------------------
144  private:
145 
148 
149  }; // end of class TrueLocalEstimatorOnPoints
150 
151 } // namespace DGtal
152 
153 
155 // Includes inline functions.
156 #include "DGtal/geometry/curves/estimation/TrueLocalEstimatorOnPoints.ih"
157 
158 // //
160 
161 #endif // !defined TrueLocalEstimatorOnPoints_h
162 
163 #undef TrueLocalEstimatorOnPoints_RECURSES
164 #endif // else defined(TrueLocalEstimatorOnPoints_RECURSES)
DGtal::TrueLocalEstimatorOnPoints::ConstIterator
TConstIteratorOnPoints ConstIterator
Definition: TrueLocalEstimatorOnPoints.h:74
DGtal::TrueLocalEstimatorOnPoints::myFunctorPtr
const ParametricShapeFunctor * myFunctorPtr
Owning pointer on a parametric shape functor.
Definition: TrueLocalEstimatorOnPoints.h:147
DGtal::TrueLocalEstimatorOnPoints::eval
Quantity eval(const ConstIterator &it, const double h=1.) const
DGtal::TrueLocalEstimatorOnPoints::Quantity
ParametricShapeFunctor::Quantity Quantity
Definition: TrueLocalEstimatorOnPoints.h:80
DGtal::TrueLocalEstimatorOnPoints
Aim: Computes the true quantity to each element of a range associated to a parametric shape.
Definition: TrueLocalEstimatorOnPoints.h:69
DGtal::TrueLocalEstimatorOnPoints::ParametricShape
TParametricShape ParametricShape
Definition: TrueLocalEstimatorOnPoints.h:76
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::TrueLocalEstimatorOnPoints::ParametricShapeFunctor
TParametricShapeFunctor ParametricShapeFunctor
Definition: TrueLocalEstimatorOnPoints.h:79
DGtal::TrueLocalEstimatorOnPoints::attach
void attach(const ParametricShape &aShape)
DGtal::TrueLocalEstimatorOnPoints::RealPoint
TParametricShape::RealPoint RealPoint
Definition: TrueLocalEstimatorOnPoints.h:77
DGtal::TrueLocalEstimatorOnPoints::operator=
TrueLocalEstimatorOnPoints & operator=(const TrueLocalEstimatorOnPoints &)=delete
DGtal::TrueLocalEstimatorOnPoints::TrueLocalEstimatorOnPoints
TrueLocalEstimatorOnPoints(const TrueLocalEstimatorOnPoints &)=delete
DGtal::TrueLocalEstimatorOnPoints::TrueLocalEstimatorOnPoints
TrueLocalEstimatorOnPoints()
DGtal::TrueLocalEstimatorOnPoints::~TrueLocalEstimatorOnPoints
~TrueLocalEstimatorOnPoints()
DGtal::TrueLocalEstimatorOnPoints::eval
OutputIterator eval(const ConstIterator &itb, const ConstIterator &ite, OutputIterator result, const double h=1.) const
RealPoint
Z2i::RealPoint RealPoint
Definition: testAstroid2D.cpp:46
DGtal::TrueLocalEstimatorOnPoints::isValid
bool isValid() const