DGtal  1.5.beta
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)
38 #define BLUELocalLengthEstimator_RECURSES
39 
40 #if !defined BLUELocalLengthEstimator_h
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 
93 
101 
102  // ----------------------- Interface --------------------------------------
103  public:
104 
109  void selfDisplay ( std::ostream & out ) const
110  {
111  out << "[BLUELocalLengthEstimator]";
112  if (this->isValid())
113  out <<" initialized";
114  else
115  out<< " not initialized";
116  }
117 
118  }; // end of class BLUELocalLengthEstimator
119 
120 
127  template <typename T>
128  std::ostream&
129  operator<< ( std::ostream & out, const BLUELocalLengthEstimator<T> & object );
130 
131 } // namespace DGtal
132 
133 // //
135 
136 #endif // !defined BLUELocalLengthEstimator_h
137 
138 #undef BLUELocalLengthEstimator_RECURSES
139 #endif // else defined(BLUELocalLengthEstimator_RECURSES)
Aim: Best Linear Unbiased Two step length estimator.
void selfDisplay(std::ostream &out) const
BLUELocalLengthEstimator(const BLUELocalLengthEstimator &other)=delete
BLUELocalLengthEstimator & operator=(const BLUELocalLengthEstimator &other)=delete
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric ...
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)