Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal 2.0.0
DigitalSurfaceEmbedderWithNormalVectorEstimator.h
1
16
17#pragma once
18
30
31#if defined(DigitalSurfaceEmbedderWithNormalVectorEstimator_RECURSES)
32#error Recursive header files inclusion detected in DigitalSurfaceEmbedderWithNormalVectorEstimator.h
33#else // defined(DigitalSurfaceEmbedderWithNormalVectorEstimator_RECURSES)
35#define DigitalSurfaceEmbedderWithNormalVectorEstimator_RECURSES
36
37#if !defined DigitalSurfaceEmbedderWithNormalVectorEstimator_h
39#define DigitalSurfaceEmbedderWithNormalVectorEstimator_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45#include "DGtal/base/ConstAlias.h"
46#include "DGtal/kernel/NumberTraits.h"
47#include "DGtal/topology/CDigitalSurfaceEmbedder.h"
49
50namespace DGtal
51{
52
53 // Forward declaration.
54 template < typename TDigitalSurfaceEmbedder,
55 typename TNormalVectorEstimator >
57
59
71
72 template < typename TDigitalSurfaceEmbedder,
73 typename TNormalVectorEstimator >
75 {
76 public:
78 < TDigitalSurfaceEmbedder, TNormalVectorEstimator > Self;
80
81 typedef TDigitalSurfaceEmbedder DigitalSurfaceEmbedder;
82 typedef TNormalVectorEstimator NormalVectorEstimator;
83
84 typedef typename DigitalSurfaceEmbedder::KSpace KSpace;
85 typedef typename DigitalSurfaceEmbedder::Surface Surface;
86 typedef typename DigitalSurfaceEmbedder::SCell SCell;
87 typedef typename DigitalSurfaceEmbedder::RealPoint RealPoint;
88 typedef typename DigitalSurfaceEmbedder::Argument Argument;
89 typedef typename DigitalSurfaceEmbedder::Value Value;
90
91 typedef typename KSpace::Space Space;
92 typedef typename Space::RealVector RealVector;
93 typedef typename NormalVectorEstimator::Quantity Quantity;
94
96
98
99
104
110 Self & operator=( const Self & other );
111
120
126 ( const Self & other );
127
132
133 // ----------------------- Interface --------------------------------------
134 public:
135
143 RealPoint operator()( const SCell & scell ) const;
144
148 const Surface & surface() const;
149
153 const KSpace & space() const
154 {
155 return myDSEmbedder->space();
156 }
157
163
169 RealVector gradient( const SCell & scell ) const;
170
171 // ----------------------- Interface --------------------------------------
172 public:
173
179 void selfDisplay ( std::ostream & out ) const;
180
185 bool isValid() const;
186
187 // ------------------------- Protected Datas ------------------------------
188 private:
189 // ------------------------- Private Datas --------------------------------
190 private:
191
196
197 // ------------------------- Hidden services ------------------------------
198 protected:
199
200 }; // end of class DigitalSurfaceEmbedderWithNormalVectorEstimator
201
213 template < typename TDigitalSurfaceEmbedder,
214 typename TNormalVectorEstimator >
265
272 template < typename TDigitalSurfaceEmbedder, typename TNormalVectorEstimator >
273 std::ostream&
274 operator<< ( std::ostream & out,
276
277} // namespace DGtal
278
279
281// Includes inline functions.
282#include "DGtal/geometry/surfaces/estimation/DigitalSurfaceEmbedderWithNormalVectorEstimator.ih"
283
284// //
286
287#endif // !defined DigitalSurfaceEmbedderWithNormalVectorEstimator_h
288
289#undef DigitalSurfaceEmbedderWithNormalVectorEstimator_RECURSES
290#endif // else defined(DigitalSurfaceEmbedderWithNormalVectorEstimator_RECURSES)
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition ConstAlias.h:187
DigitalSurfaceEmbedderWithNormalVectorEstimatorGradientMap< DigitalSurfaceEmbedder, NormalVectorEstimator > Self
DigitalSurfaceEmbedderWithNormalVectorEstimatorGradientMap(ConstAlias< Embedder > embedder)
BOOST_CONCEPT_ASSERT((concepts::CDigitalSurfaceEmbedder< TDigitalSurfaceEmbedder >))
DigitalSurfaceEmbedderWithNormalVectorEstimatorGradientMap()
Default constructor. The object is not valid.
~DigitalSurfaceEmbedderWithNormalVectorEstimatorGradientMap()
Destructor. Does nothing.
DigitalSurfaceEmbedderWithNormalVectorEstimator(ConstAlias< DigitalSurfaceEmbedder > aDSEmbedder, ConstAlias< NormalVectorEstimator > anEstimator)
DigitalSurfaceEmbedderWithNormalVectorEstimatorGradientMap< DigitalSurfaceEmbedder, NormalVectorEstimator > GradientMap
DigitalSurfaceEmbedderWithNormalVectorEstimator< TDigitalSurfaceEmbedder, TNormalVectorEstimator > Self
BOOST_CONCEPT_ASSERT((concepts::CDigitalSurfaceEmbedder< TDigitalSurfaceEmbedder >))
RealVector gradient(const SCell &scell) const
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< RealVector, Quantity >::value))
RealPoint operator()(const SCell &scell) const
PointVector< dim, double > RealVector
Definition SpaceND.h:121
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: A digital surface embedder is a specialized mapping from signed cells to Euclidean points....