DGtal  1.3.beta
CGlobalCurveGeometricEstimator.h
1 
17 #pragma once
18 
31 #if defined(CGlobalGeometricEstimator_RECURSES)
32 #error Recursive header files inclusion detected in CGlobalGeometricEstimator.h
33 #else // defined(CGlobalGeometricEstimator_RECURSES)
34 
35 #define CGlobalGeometricEstimator_RECURSES
36 
37 #if !defined CGlobalGeometricEstimator_h
38 
39 #define CGlobalGeometricEstimator_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/CQuantity.h"
46 #include <boost/iterator/iterator_archetypes.hpp>
48 
49 namespace DGtal
50 {
51  namespace concepts
52  {
54  // class CGlobalGeometricEstimator
95  template <typename T>
97  {
98 
99  // ----------------------- Concept checks ------------------------------
100  public:
101 
102  typedef typename T::Quantity Quantity;
104 
105  typedef typename T::ConstIterator ConstIterator;
108 
109 
111  {
112  ConceptUtils::sameType( myQ, myX.eval( ) );
113  }
114 
115  // ------------------------- Private Datas --------------------------------
116  private:
117  T myX;
118 
119  double myH;
122 
123  // ------------------------- Internals ------------------------------------
124  private:
125 
126  }; // end of concept CGlobalGeometricEstimator
127  }
128 } // namespace DGtal
129 
130 // //
132 
133 #endif // !defined CGlobalGeometricEstimator_h
134 
135 #undef CGlobalGeometricEstimator_RECURSES
136 #endif // else defined(CGlobalGeometricEstimator_RECURSES)
ConstIterator
MyDigitalSurface::ConstIterator ConstIterator
Definition: greedy-plane-segmentation-ex2.cpp:93
DGtal::concepts::CGlobalGeometricEstimator::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CGlobalGeometricEstimator)
Definition: CGlobalCurveGeometricEstimator.h:110
DGtal::concepts::CGlobalGeometricEstimator::ConstIterator
T::ConstIterator ConstIterator
Definition: CGlobalCurveGeometricEstimator.h:105
DGtal::concepts::CGlobalGeometricEstimator
Aim: This concept describes an object that can process a range so as to return one estimated quantity...
Definition: CGlobalCurveGeometricEstimator.h:96
DGtal::concepts::CGlobalGeometricEstimator::myQ
Quantity myQ
Definition: CGlobalCurveGeometricEstimator.h:121
DGtal::concepts::CGlobalGeometricEstimator::myItb
ConstIterator myItb
Definition: CGlobalCurveGeometricEstimator.h:120
DGtal::concepts::CGlobalGeometricEstimator::Quantity
T::Quantity Quantity
Definition: CGlobalCurveGeometricEstimator.h:102
DGtal::concepts::CGlobalGeometricEstimator::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CQuantity< Quantity >))
boost_concepts::ForwardTraversalConcept
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ForwardTraversal.html.
Definition: BoostConcepts.dox:47
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal::concepts::CQuantity
Aim: defines the concept of quantity in DGtal.
Definition: CQuantity.h:92
DGtal::concepts::CGlobalGeometricEstimator::myX
T myX
Definition: CGlobalCurveGeometricEstimator.h:117
boost_concepts::ReadableIteratorConcept
Go to http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc/ReadableIterator.html.
Definition: BoostConcepts.dox:29
DGtal::concepts::CGlobalGeometricEstimator::myH
double myH
Definition: CGlobalCurveGeometricEstimator.h:119
DGtal::concepts::CGlobalGeometricEstimator::myIte
ConstIterator myIte
Definition: CGlobalCurveGeometricEstimator.h:120