DGtal 1.4.0
Loading...
Searching...
No Matches
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)
38#define TrueLocalEstimatorOnPoints_RECURSES
39
40#if !defined TrueLocalEstimatorOnPoints_h
42#define TrueLocalEstimatorOnPoints_h
43
45// Inclusions
46#include <iostream>
47#include "DGtal/base/Common.h"
49
50namespace 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;
77 typedef typename TParametricShape::RealPoint RealPoint;
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)
Aim: Computes the true quantity to each element of a range associated to a parametric shape.
OutputIterator eval(const ConstIterator &itb, const ConstIterator &ite, OutputIterator result, const double h=1.) const
ParametricShapeFunctor::Quantity Quantity
TrueLocalEstimatorOnPoints(const TrueLocalEstimatorOnPoints &)=delete
Quantity eval(const ConstIterator &it, const double h=1.) const
const ParametricShapeFunctor * myFunctorPtr
Owning pointer on a parametric shape functor.
TrueLocalEstimatorOnPoints & operator=(const TrueLocalEstimatorOnPoints &)=delete
void attach(const ParametricShape &aShape)
DGtal is the top-level namespace which contains all DGtal functions and types.