DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
geometry
curves
estimation
TwoStepLocalLengthEstimator.h
1
17
#pragma once
18
33
#if defined(TwoStepLocalLengthEstimator_RECURSES)
34
#error Recursive header files inclusion detected in TwoStepLocalLengthEstimator.h
35
#else // defined(TwoStepLocalLengthEstimator_RECURSES)
36
37
#define TwoStepLocalLengthEstimator_RECURSES
38
39
#if !defined TwoStepLocalLengthEstimator_h
40
41
#define TwoStepLocalLengthEstimator_h
42
44
// Inclusions
45
#include <iostream>
46
#include "DGtal/base/Common.h"
48
49
namespace
DGtal
50
{
51
53
// template class TwoStepLocalLengthEstimator
64
template
<
typename
TConstIterator>
65
class
TwoStepLocalLengthEstimator
66
{
67
// ----------------------- Standard services ------------------------------
68
public
:
69
70
72
typedef
TConstIterator
ConstIterator
;
73
74
typedef
double
Quantity
;
75
76
80
TwoStepLocalLengthEstimator
(
const
double
wdirect,
const
double
wdiag):
81
myWeightDirect
(wdirect),
myWeightDiagonal
(wdiag)
82
{}
83
84
88
~TwoStepLocalLengthEstimator
();
89
90
91
// ----------------------- Interface --------------------------------------
92
public
:
93
102
void
init
(
const
double
h,
const
ConstIterator& itb,
103
const
ConstIterator& ite,
104
const
bool
& isClosed);
105
106
114
Quantity
eval
( )
const
;
115
116
121
void
selfDisplay
( std::ostream & out )
const
;
122
127
bool
isValid
()
const
;
128
129
// ------------------------- Private Datas --------------------------------
130
private
:
131
133
double
myH
;
134
136
ConstIterator
myBeginIt
;
137
ConstIterator
myEndIt
;
138
140
bool
myIsInitBefore
;
141
143
double
myWeightDirect
;
144
double
myWeightDiagonal
;
145
146
147
private
:
148
154
TwoStepLocalLengthEstimator
(
const
TwoStepLocalLengthEstimator
& other );
155
162
TwoStepLocalLengthEstimator
&
operator=
(
const
TwoStepLocalLengthEstimator
& other );
163
164
// ------------------------- Internals ------------------------------------
165
private
:
166
167
};
// end of class TwoStepLocalLengthEstimator
168
169
176
template
<
typename
T>
177
std::ostream&
178
operator<< ( std::ostream & out, const TwoStepLocalLengthEstimator<T> & object );
179
180
}
// namespace DGtal
181
182
184
// Includes inline functions.
185
#include "DGtal/geometry/curves/estimation/TwoStepLocalLengthEstimator.ih"
186
187
// //
189
190
#endif // !defined TwoStepLocalLengthEstimator_h
191
192
#undef TwoStepLocalLengthEstimator_RECURSES
193
#endif // else defined(TwoStepLocalLengthEstimator_RECURSES)
Generated on Wed Dec 19 2012 19:10:42 for DGtal by
1.8.1.1