DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BLUELocalLengthEstimator.h
1 
17 #pragma once
18 
34 #if defined(BLUELocalLengthEstimator_RECURSES)
35 #error Recursive header files inclusion detected in BLUELocalLengthEstimator.h
36 #else // defined(BLUELocalLengthEstimator_RECURSES)
37 
38 #define BLUELocalLengthEstimator_RECURSES
39 
40 #if !defined BLUELocalLengthEstimator_h
41 
42 #define BLUELocalLengthEstimator_h
43 
45 // Inclusions
46 #include <iostream>
47 #include "DGtal/base/Common.h"
48 #include "DGtal/geometry/curves/estimation/TwoStepLocalLengthEstimator.h"
50 
51 namespace DGtal
52 {
53 
55  // template class BLUELocalLengthEstimator
68  template <typename TConstIterator>
70  {
71  // ----------------------- Standard services ------------------------------
72  public:
73 
74 
76  typedef TConstIterator ConstIterator;
77  typedef double Quantity;
78 
79 
84  TwoStepLocalLengthEstimator<TConstIterator>(0.948,1.343)
85  {}
86 
87 
88 
89  // ----------------------- Interface --------------------------------------
90  public:
91 
96  void selfDisplay ( std::ostream & out ) const
97  {
98  out << "[BLUELocalLengthEstimator]";
99  if (this->myIsInitBefore)
100  out <<" myH="<< this->myH;
101  else
102  out<< " not initialized";
103  }
104 
105 
106  private:
107 
114 
122 
123  // ------------------------- Internals ------------------------------------
124  private:
125 
126  }; // end of class BLUELocalLengthEstimator
127 
128 
135  template <typename T>
136  std::ostream&
137  operator<< ( std::ostream & out, const BLUELocalLengthEstimator<T> & object );
138 
139 } // namespace DGtal
140 
141 // //
143 
144 #endif // !defined BLUELocalLengthEstimator_h
145 
146 #undef BLUELocalLengthEstimator_RECURSES
147 #endif // else defined(BLUELocalLengthEstimator_RECURSES)