DGtal  1.3.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)
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 
92  BLUELocalLengthEstimator ( const BLUELocalLengthEstimator & other ) = delete;
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)
DGtal::BLUELocalLengthEstimator::BLUELocalLengthEstimator
BLUELocalLengthEstimator()
Definition: BLUELocalLengthEstimator.h:83
DGtal::BLUELocalLengthEstimator::ConstIterator
TConstIterator ConstIterator
Definition: BLUELocalLengthEstimator.h:76
DGtal::BLUELocalLengthEstimator::Quantity
double Quantity
Definition: BLUELocalLengthEstimator.h:77
DGtal::TwoStepLocalLengthEstimator
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric ...
Definition: TwoStepLocalLengthEstimator.h:65
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
DGtal::BLUELocalLengthEstimator
Aim: Best Linear Unbiased Two step length estimator.
Definition: BLUELocalLengthEstimator.h:69
DGtal::TwoStepLocalLengthEstimator::isValid
bool isValid() const
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::BLUELocalLengthEstimator::operator=
BLUELocalLengthEstimator & operator=(const BLUELocalLengthEstimator &other)=delete
DGtal::BLUELocalLengthEstimator::selfDisplay
void selfDisplay(std::ostream &out) const
Definition: BLUELocalLengthEstimator.h:109