34 #if defined(IntegralInvariantVolumeEstimator_RECURSES)
35 #error Recursive header files inclusion detected in IntegralInvariantVolumeEstimator.h
36 #else // defined(IntegralInvariantVolumeEstimator_RECURSES)
38 #define IntegralInvariantVolumeEstimator_RECURSES
40 #if !defined IntegralInvariantVolumeEstimator_h
42 #define IntegralInvariantVolumeEstimator_h
47 #include "DGtal/base/Common.h"
49 #include "DGtal/kernel/BasicPointFunctors.h"
50 #include "DGtal/kernel/CPointPredicate.h"
51 #include "DGtal/topology/CCellFunctor.h"
52 #include "DGtal/topology/CCellularGridSpaceND.h"
53 #include "DGtal/geometry/surfaces/FunctorOnCells.h"
55 #include "DGtal/shapes/GaussDigitizer.h"
56 #include "DGtal/shapes/Shapes.h"
58 #include "DGtal/geometry/surfaces/DigitalSurfaceConvolver.h"
59 #include "DGtal/geometry/surfaces/estimation/IIGeometricFunctors.h"
60 #include "DGtal/shapes/EuclideanShapesDecorator.h"
62 #include "DGtal/shapes/implicit/ImplicitBall.h"
112 template <
typename TKSpace,
typename TPo
intPredicate,
typename TVolumeFunctor>
163 typename VolumeFunctor::Argument >::value ));
245 template <
typename SurfelConstIterator>
246 void init(
const double _h, SurfelConstIterator itb, SurfelConstIterator ite );
262 template<
typename SurfelConstIterator >
286 template <
typename OutputIterator,
typename SurfelConstIterator>
287 OutputIterator
eval( SurfelConstIterator itb,
288 SurfelConstIterator ite,
289 OutputIterator result )
const;
331 template <
typename TKSpace,
typename TPo
intPredicate,
typename TVolumeFunctor>
341 #include "DGtal/geometry/surfaces/estimation/IntegralInvariantVolumeEstimator.ih"
346 #endif // !defined IntegralInvariantVolumeEstimator_h
348 #undef IntegralInvariantVolumeEstimator_RECURSES
349 #endif // else defined(IntegralInvariantVolumeEstimator_RECURSES)
~IntegralInvariantVolumeEstimator()
std::vector< PairIterators > myKernels
array of begin/end iterator of shifting masks.
Aim: A class for computing the Gauss digitization of some Euclidean shape, i.e. its intersection with...
TVolumeFunctor VolumeFunctor
CountedPtr< DigitalShapeKernel > myDigKernel
Digital kernel.
TPointPredicate PointPredicate
void selfDisplay(std::ostream &out) const
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
std::set< SCell > SurfelSet
Preferred type for defining a set of surfels (always signed cells).
BOOST_CONCEPT_ASSERT((concepts::CCellFunctor< ShapeSpelFunctor >))
Create a point functor from a point predicate and a domain.
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< typename Convolver::Quantity, typename VolumeFunctor::Argument >::value))
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate >))
Aim: Defines a functor on cells.
VolumeFunctor::Quantity Quantity
The returned type of the estimator, depends on the functor.
CountedPtr< Domain > myShapeDomain
Smart pointer on domain
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
int Value
The type used for convolutions.
functors::PointFunctorFromPointPredicateAndDomain< PointPredicate, Domain, unsigned int > ShapePointFunctor
IntegralInvariantVolumeEstimator(VolumeFunctor fct=VolumeFunctor())
GaussDigitizer< Space, EuclideanMinus > DigitalShape
CountedPtr< Convolver > myConvolver
Convolver.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Convolver::PairIterators PairIterators
Scalar myRadius
"digital" radius of the kernel (buy may be non integer).
FunctorOnCells< ShapePointFunctor, KSpace > ShapeSpelFunctor
Self & operator=(const Self &other)
Space::RealPoint RealPoint
Aim: This class implement an Integral Invariant estimator which computes for each surfel the volume o...
EuclideanShapesCSG< KernelSupport, KernelSupport > EuclideanMinus
Aim: implements basic MxN Matrix services (M,N>=1).
void attach(ConstAlias< KSpace > K, ConstAlias< PointPredicate > aPointPredicate)
Quantity eval(SurfelConstIterator it) const
ImplicitBall< Space > KernelSupport
DGtal is the top-level namespace which contains all DGtal functions and types.
VolumeFunctor myFct
The volume functor that transforms the volume into a quantity.
Aim: Constructive Solid Geometry (CSG) between models of CEuclideanBoundedShape and CEuclideanOriente...
Aim: Convert a functor on Digital Point to a Functor on Khalimsky Cell.
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
SurfelSet::const_iterator ConstIteratorKernel
Scalar myH
precision of the grid
Aim: Define a simple functor that returns a constant quantity (0 by default).
DigitalSurfaceConvolver< ShapeSpelFunctor, KernelSpelFunctor, KSpace, DigitalShapeKernel > Convolver
KSpace::SurfelSet SurfelSet
CountedConstPtrOrConstPtr< PointPredicate > myPointPredicate
Smart pointer (if required) on a point predicate.
DigitalSetSelector< Domain, BIG_DS+HIGH_VAR_DS >::Type DigitalSet
Aim: Smart pointer based on reference counts.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
void setParams(const double dRadius)
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< KSpace >))
CountedPtr< ShapeSpelFunctor > myShapeSpelFunctor
Smart pointer on functor spel -> {0,1}.
IntegralInvariantVolumeEstimator(const Self &other)
Matrix::Component Component
functors::ConstValueCell< Value, Spel > KernelSpelFunctor
std::pair< KernelConstIterator, KernelConstIterator > PairIterators
CountedPtr< KernelSupport > myKernel
Euclidean kernel.
CountedPtr< ShapePointFunctor > myShapePointFunctor
Smart pointer on functor point -> {0,1}.
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< VolumeFunctor, Component, Quantity >))
Aim: Defines a predicate on a point.
void init(const double _h, SurfelConstIterator itb, SurfelConstIterator ite)
Space::RealVector RealVector
std::vector< DigitalSet * > myKernelsSet
Array of shifting masks. Size = 9 for each shifting (0-adjacent and full kernel included)
IntegralInvariantVolumeEstimator(ConstAlias< KSpace > K, ConstAlias< PointPredicate > aPointPredicate, VolumeFunctor fct=VolumeFunctor())
const KernelSpelFunctor myKernelFunctor
Kernel functor (on Spel)
HyperRectDomain< Space > Domain
GaussDigitizer< Space, KernelSupport > DigitalShapeKernel
OutputIterator eval(SurfelConstIterator itb, SurfelConstIterator ite, OutputIterator result) const
Aim: Defines a unary functor, which associates arguments to results.
Convolver::CovarianceMatrix Matrix
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
IntegralInvariantVolumeEstimator< TKSpace, TPointPredicate, TVolumeFunctor > Self