DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
ContourHelper.h
1
16
17
#pragma once
18
30
31
#if defined(ContourHelper_RECURSES)
32
#error Recursive header files inclusion detected in ContourHelper.h
33
#else
// defined(ContourHelper_RECURSES)
35
#define ContourHelper_RECURSES
36
37
#if !defined ContourHelper_h
39
#define ContourHelper_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/kernel/PointVector.h"
46
47
49
50
namespace
DGtal
51
{
52
54
// class ContourHelper
60
class
ContourHelper
61
{
62
// ----------------------- Static services ------------------------------
63
public
:
64
71
template
<
typename
TPo
int
>
72
static
73
DGtal::PointVector<TPoint::dimension, double>
74
getBarycenter
(
const
std::vector<TPoint> & aSet);
75
76
83
template
<
typename
TPo
int
>
84
static
85
bool
86
isCounterClockWise
(
const
std::vector<TPoint> & aCurve);
87
88
89
101
102
template
<
typename
TIterator,
typename
TOutputIterator>
103
static
104
void
105
pixels2pixels8C
(
const
TIterator &itb,
const
TIterator &ite, TOutputIterator out);
106
107
108
109
110
// ----------------------- Standard services ------------------------------
111
public
:
112
116
~ContourHelper
();
117
118
// ----------------------- Interface --------------------------------------
119
public
:
120
125
void
selfDisplay
( std::ostream & out )
const
;
126
131
bool
isValid
()
const
;
132
133
// ------------------------- Protected Data ------------------------------
134
private
:
135
// ------------------------- Private Data --------------------------------
136
private
:
137
138
// ------------------------- Hidden services ------------------------------
139
protected
:
140
145
ContourHelper
();
146
147
private
:
148
154
ContourHelper
(
const
ContourHelper
& other );
155
162
ContourHelper
&
operator=
(
const
ContourHelper
& other );
163
164
// ------------------------- Internals ------------------------------------
165
private
:
166
167
};
// end of class ContourHelper
168
169
176
std::ostream&
177
operator<<
( std::ostream & out,
const
ContourHelper
&
object
);
178
179
180
}
// namespace DGtal
181
182
184
// Includes inline functions/methods.
185
#include "DGtal/geometry/helpers/ContourHelper.ih"
186
187
// //
189
190
#endif
// !defined ContourHelper_h
191
192
#undef ContourHelper_RECURSES
193
#endif
// else defined(ContourHelper_RECURSES)
DGtal::ContourHelper
Aim: a helper class to process sequences of points.
Definition
ContourHelper.h:61
DGtal::ContourHelper::operator=
ContourHelper & operator=(const ContourHelper &other)
DGtal::ContourHelper::isValid
bool isValid() const
DGtal::ContourHelper::~ContourHelper
~ContourHelper()
DGtal::ContourHelper::getBarycenter
static DGtal::PointVector< TPoint::dimension, double > getBarycenter(const std::vector< TPoint > &aSet)
DGtal::ContourHelper::pixels2pixels8C
static void pixels2pixels8C(const TIterator &itb, const TIterator &ite, TOutputIterator out)
DGtal::ContourHelper::ContourHelper
ContourHelper(const ContourHelper &other)
DGtal::ContourHelper::isCounterClockWise
static bool isCounterClockWise(const std::vector< TPoint > &aCurve)
DGtal::ContourHelper::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::ContourHelper::ContourHelper
ContourHelper()
DGtal::PointVector
Aim: Implements basic operations that will be used in Point and Vector classes.
Definition
PointVector.h:593
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
helpers
ContourHelper.h
Generated on
for DGtal by
1.18.0