31#if defined(TrueDigitalSurfaceLocalEstimator_RECURSES)
32#error Recursive header files inclusion detected in TrueDigitalSurfaceLocalEstimator.h
35#define TrueDigitalSurfaceLocalEstimator_RECURSES
37#if !defined TrueDigitalSurfaceLocalEstimator_h
39#define TrueDigitalSurfaceLocalEstimator_h
44#include "DGtal/base/Common.h"
45#include "DGtal/base/ConstAlias.h"
46#include "DGtal/base/CountedConstPtrOrConstPtr.h"
47#include "DGtal/topology/CanonicSCellEmbedder.h"
96 template <
typename TKSpace,
typename TShape,
typename TGeometricFunctor>
111 typedef typename GeometricFunctor::Quantity
Quantity;
169 const int maxIter = 20,
170 const Scalar accuracy = 0.0001,
171 const Scalar gamma = 0.5 );
181 template <
typename SurfelConstIterator>
183 SurfelConstIterator itb,
184 SurfelConstIterator ite );
190 template <
typename SurfelConstIterator>
200 template <
typename OutputIterator,
typename SurfelConstIterator>
201 OutputIterator
eval( SurfelConstIterator itb,
202 SurfelConstIterator ite,
203 OutputIterator result )
const;
269 template <
typename TKSpace,
typename TShape,
typename TGeometricFunctor>
278#include "DGtal/geometry/surfaces/estimation/TrueDigitalSurfaceLocalEstimator.ih"
285#undef TrueDigitalSurfaceLocalEstimator_RECURSES
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Smart or simple const pointer on T. It can be a smart pointer based on reference counts or a sim...
Aim: Copy on write shared pointer.
SignedKhalimskyCell< dim, Integer > SCell
SpaceND< dim, Integer > Space
PointVector< dim, double > RealPoint
Aim: An estimator on digital surfaces that returns the reference local geometric quantity....
void init(const Scalar _h, SurfelConstIterator itb, SurfelConstIterator ite)
Quantity eval(SurfelConstIterator it) const
RealPoint embed(Surfel surfel) const
TrueDigitalSurfaceLocalEstimator(const Self &other)
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< TKSpace >))
CountedConstPtrOrConstPtr< Shape > myShape
void selfDisplay(std::ostream &out) const
TGeometricFunctor GeometricFunctor
Space::RealPoint RealPoint
GeometricFunctor::Quantity Quantity
RealPoint::Coordinate Scalar
TrueDigitalSurfaceLocalEstimator< TKSpace, TShape, TGeometricFunctor > Self
Self & operator=(const Self &other)
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< GeometricFunctor, RealPoint, Quantity >))
CanonicSCellEmbedder< KSpace > SCellEmbedder
CountedConstPtrOrConstPtr< KSpace > myKSpace
OutputIterator eval(SurfelConstIterator itb, SurfelConstIterator ite, OutputIterator result) const
~TrueDigitalSurfaceLocalEstimator()
void setParams(ConstAlias< KSpace > ks, Clone< GeometricFunctor > fct, const int maxIter=20, const Scalar accuracy=0.0001, const Scalar gamma=0.5)
void attach(ConstAlias< Shape > aShape)
CowPtr< GeometricFunctor > myFct
TrueDigitalSurfaceLocalEstimator()
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 trivial embedder for signed cell, which corresponds to the canonic injection of cell centroids...
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Aim: Defines a unary functor, which associates arguments to results.