34 #if defined(IntegralInvariantCovarianceEstimator_RECURSES)
35 #error Recursive header files inclusion detected in IntegralInvariantCovarianceEstimator.h
38 #define IntegralInvariantCovarianceEstimator_RECURSES
40 #if !defined IntegralInvariantCovarianceEstimator_h
42 #define IntegralInvariantCovarianceEstimator_h
47 #include "DGtal/base/Common.h"
49 #include "DGtal/kernel/CPointPredicate.h"
50 #include "DGtal/kernel/BasicPointFunctors.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"
114 template <
typename TKSpace,
typename TPo
intPredicate,
typename TCovarianceMatrixFunctor>
138 typedef typename CovarianceMatrixFunctor::Quantity
Quantity;
165 typename CovarianceMatrixFunctor::Argument >::value ));
247 template <
typename SurfelConstIterator>
248 void init(
const double _h, SurfelConstIterator itb, SurfelConstIterator ite );
264 template<
typename SurfelConstIterator >
288 template <
typename OutputIterator,
typename SurfelConstIterator>
289 OutputIterator
eval( SurfelConstIterator itb,
290 SurfelConstIterator ite,
291 OutputIterator result )
const;
333 template <
typename TKSpace,
typename TPo
intPredicate,
typename TCovarianceMatrixFunctor>
343 #include "DGtal/geometry/surfaces/estimation/IntegralInvariantCovarianceEstimator.ih"
350 #undef IntegralInvariantCovarianceEstimator_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Smart pointer based on reference counts.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
std::pair< KernelConstIterator, KernelConstIterator > PairIterators
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: A class for computing the Gauss digitization of some Euclidean shape, i.e. its intersection with...
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
Aim: This class implement an Integral Invariant estimator which computes for each surfel the covarian...
void selfDisplay(std::ostream &out) const
std::vector< PairIterators > myKernels
array of begin/end iterator of shifting masks.
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate >))
IntegralInvariantCovarianceEstimator(const Self &other)
TPointPredicate PointPredicate
void setParams(const double dRadius)
int Value
The type used for convolutions.
CountedPtr< ShapeSpelFunctor > myShapeSpelFunctor
Smart pointer on functor spel -> {0,1}.
Matrix::Component Component
ImplicitBall< Space > KernelSupport
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< typename Convolver::CovarianceMatrix, typename CovarianceMatrixFunctor::Argument >::value))
KSpace::SurfelSet SurfelSet
CountedPtr< ShapePointFunctor > myShapePointFunctor
Smart pointer on functor point -> {0,1}.
TCovarianceMatrixFunctor CovarianceMatrixFunctor
const KernelSpelFunctor myKernelFunctor
Kernel functor (on Spel)
EuclideanShapesCSG< KernelSupport, KernelSupport > EuclideanMinus
CovarianceMatrixFunctor::Quantity Quantity
The returned type of the estimator, depends on the functor.
CountedPtr< KernelSupport > myKernel
Euclidean kernel.
Quantity eval(SurfelConstIterator it) const
Scalar myH
precision of the grid
functors::ConstValueCell< Value, Spel > KernelSpelFunctor
Convolver::CovarianceMatrix Matrix
Space::RealVector RealVector
GaussDigitizer< Space, EuclideanMinus > DigitalShape
DigitalSurfaceConvolver< ShapeSpelFunctor, KernelSpelFunctor, KSpace, DigitalShapeKernel > Convolver
OutputIterator eval(SurfelConstIterator itb, SurfelConstIterator ite, OutputIterator result) const
CountedPtr< DigitalShapeKernel > myDigKernel
Digital kernel.
Scalar myRadius
"digital" radius of the kernel (but may be non integer).
IntegralInvariantCovarianceEstimator(CovarianceMatrixFunctor fct=CovarianceMatrixFunctor())
void init(const double _h, SurfelConstIterator itb, SurfelConstIterator ite)
CountedConstPtrOrConstPtr< PointPredicate > myPointPredicate
Smart pointer (if required) on a point predicate.
FunctorOnCells< ShapePointFunctor, KSpace > ShapeSpelFunctor
std::vector< DigitalSet * > myKernelsSet
Array of shifting masks. Size = 9 for each shifting (0-adjacent and full kernel included)
GaussDigitizer< Space, KernelSupport > DigitalShapeKernel
Space::RealPoint RealPoint
HyperRectDomain< Space > Domain
Convolver::PairIterators PairIterators
~IntegralInvariantCovarianceEstimator()
void attach(ConstAlias< KSpace > K, ConstAlias< PointPredicate > aPointPredicate)
DigitalSetSelector< Domain, BIG_DS+HIGH_VAR_DS >::Type DigitalSet
IntegralInvariantCovarianceEstimator(ConstAlias< KSpace > K, ConstAlias< PointPredicate > aPointPredicate, CovarianceMatrixFunctor fct=CovarianceMatrixFunctor())
IntegralInvariantCovarianceEstimator< TKSpace, TPointPredicate, TCovarianceMatrixFunctor > Self
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< CovarianceMatrixFunctor, Matrix, Quantity >))
functors::PointFunctorFromPointPredicateAndDomain< PointPredicate, Domain, unsigned int > ShapePointFunctor
CountedPtr< Convolver > myConvolver
Convolver.
CovarianceMatrixFunctor myFct
The covariance matrix functor that transforms the II covariance matrix into a quantity.
CountedPtr< Domain > myShapeDomain
Smart pointer on domain
BOOST_CONCEPT_ASSERT((concepts::CCellFunctor< ShapeSpelFunctor >))
Self & operator=(const Self &other)
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< KSpace >))
SurfelSet::const_iterator ConstIteratorKernel
std::set< SCell > SurfelSet
Preferred type for defining a set of surfels (always signed cells).
Aim: implements basic MxN Matrix services (M,N>=1).
Aim: Define a simple functor that returns a constant quantity (0 by default).
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Aim: Defines a functor on cells.
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Aim: Defines a predicate on a point.
Aim: Defines a unary functor, which associates arguments to results.
Create a point functor from a point predicate and a domain.