DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
TwoStepLocalLengthEstimator.h
1
16
17
#pragma once
18
32
33
#if defined(TwoStepLocalLengthEstimator_RECURSES)
34
#error Recursive header files inclusion detected in TwoStepLocalLengthEstimator.h
35
#else
// defined(TwoStepLocalLengthEstimator_RECURSES)
37
#define TwoStepLocalLengthEstimator_RECURSES
38
39
#if !defined TwoStepLocalLengthEstimator_h
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
79
TwoStepLocalLengthEstimator
() =
delete
;
80
86
TwoStepLocalLengthEstimator
(
const
double
wdirect,
const
double
wdiag);
87
91
~TwoStepLocalLengthEstimator
() =
default
;
92
98
TwoStepLocalLengthEstimator
(
const
TwoStepLocalLengthEstimator
& other ) =
delete
;
99
106
TwoStepLocalLengthEstimator
&
operator=
(
const
TwoStepLocalLengthEstimator
& other ) =
delete
;
107
108
// ----------------------- Interface --------------------------------------
109
public
:
110
122
Quantity
eval
(
const
ConstIterator
& itb,
123
const
ConstIterator
& ite,
124
const
double
h = 1. )
const
;
125
130
void
selfDisplay
( std::ostream & out )
const
;
131
136
bool
isValid
()
const
;
137
138
// ------------------------- Private Data --------------------------------
139
private
:
140
142
double
myWeightDirect
;
143
double
myWeightDiagonal
;
144
145
};
// end of class TwoStepLocalLengthEstimator
146
147
154
template
<
typename
T>
155
std::ostream&
156
operator<<
( std::ostream & out,
const
TwoStepLocalLengthEstimator<T>
&
object
);
157
158
}
// namespace DGtal
159
160
162
// Includes inline functions.
163
#include "DGtal/geometry/curves/estimation/TwoStepLocalLengthEstimator.ih"
164
165
// //
167
168
#endif
// !defined TwoStepLocalLengthEstimator_h
169
170
#undef TwoStepLocalLengthEstimator_RECURSES
171
#endif
// else defined(TwoStepLocalLengthEstimator_RECURSES)
DGtal::TwoStepLocalLengthEstimator
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric ...
Definition
TwoStepLocalLengthEstimator.h:66
DGtal::TwoStepLocalLengthEstimator::TwoStepLocalLengthEstimator
TwoStepLocalLengthEstimator()=delete
DGtal::TwoStepLocalLengthEstimator::myWeightDiagonal
double myWeightDiagonal
Definition
TwoStepLocalLengthEstimator.h:143
DGtal::TwoStepLocalLengthEstimator::myWeightDirect
double myWeightDirect
Weights.
Definition
TwoStepLocalLengthEstimator.h:142
DGtal::TwoStepLocalLengthEstimator::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::TwoStepLocalLengthEstimator::Quantity
double Quantity
Definition
TwoStepLocalLengthEstimator.h:74
DGtal::TwoStepLocalLengthEstimator::~TwoStepLocalLengthEstimator
~TwoStepLocalLengthEstimator()=default
DGtal::TwoStepLocalLengthEstimator::operator=
TwoStepLocalLengthEstimator & operator=(const TwoStepLocalLengthEstimator &other)=delete
DGtal::TwoStepLocalLengthEstimator::eval
Quantity eval(const ConstIterator &itb, const ConstIterator &ite, const double h=1.) const
DGtal::TwoStepLocalLengthEstimator::TwoStepLocalLengthEstimator
TwoStepLocalLengthEstimator(const TwoStepLocalLengthEstimator &other)=delete
DGtal::TwoStepLocalLengthEstimator::isValid
bool isValid() const
DGtal::TwoStepLocalLengthEstimator::ConstIterator
TConstIterator ConstIterator
Definition
TwoStepLocalLengthEstimator.h:72
DGtal::TwoStepLocalLengthEstimator::TwoStepLocalLengthEstimator
TwoStepLocalLengthEstimator(const double wdirect, const double wdiag)
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
src
DGtal
geometry
curves
estimation
TwoStepLocalLengthEstimator.h
Generated on
for DGtal by
1.18.0