DGtal
1.5.beta
|
Aim: A functor Matrix -> RealVector that returns the tangent direction by diagonalizing the given covariance matrix. This functor is valid only in 2D space. More...
#include <DGtal/geometry/surfaces/estimation/IIGeometricFunctors.h>
Public Types | |
typedef IITangentDirectionFunctor< TSpace > | Self |
typedef TSpace | Space |
typedef Space::RealVector | RealVector |
typedef RealVector::Component | Component |
typedef TMatrix | Matrix |
typedef Matrix | Argument |
typedef RealVector | Quantity |
typedef Quantity | Value |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CMatrix< Matrix >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >)) | |
BOOST_STATIC_ASSERT ((Space::dimension==2)) | |
IITangentDirectionFunctor () | |
Default constructor. More... | |
IITangentDirectionFunctor (const Self &) | |
Copy constructor. Nothing to do. More... | |
Self & | operator= (const Self &) |
Value | operator() (const Argument &arg) const |
void | init (Component, Component) |
Private Attributes | |
Matrix | eigenVectors |
A data member only used for temporary calculations. More... | |
RealVector | eigenValues |
A data member only used for temporary calculations. More... | |
Aim: A functor Matrix -> RealVector that returns the tangent direction by diagonalizing the given covariance matrix. This functor is valid only in 2D space.
Description of template class 'IITangentDirectionFunctor'
TSpace | a model of CSpace, for instance SpaceND. |
TMatrix | a model of CMatrix, for instance SimpleMatrix. |
Definition at line 141 of file IIGeometricFunctors.h.
typedef Matrix DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Argument |
Definition at line 150 of file IIGeometricFunctors.h.
typedef RealVector::Component DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Component |
Definition at line 148 of file IIGeometricFunctors.h.
typedef TMatrix DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Matrix |
Definition at line 149 of file IIGeometricFunctors.h.
typedef RealVector DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Quantity |
Definition at line 151 of file IIGeometricFunctors.h.
typedef Space::RealVector DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::RealVector |
Definition at line 147 of file IIGeometricFunctors.h.
typedef IITangentDirectionFunctor<TSpace> DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Self |
Definition at line 145 of file IIGeometricFunctors.h.
typedef TSpace DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Space |
Definition at line 146 of file IIGeometricFunctors.h.
typedef Quantity DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::Value |
Definition at line 152 of file IIGeometricFunctors.h.
|
inline |
|
inline |
DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::BOOST_CONCEPT_ASSERT | ( | (concepts::CMatrix< Matrix >) | ) |
DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::BOOST_CONCEPT_ASSERT | ( | (concepts::CSpace< TSpace >) | ) |
DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::BOOST_STATIC_ASSERT | ( | (Space::dimension==2) | ) |
|
inline |
Initializes the functor with the gridstep and the ball Euclidean radius. Not used for this estimator.
Definition at line 192 of file IIGeometricFunctors.h.
|
inline |
Apply operator.
arg | any symmetric positive matrix (covariance matrix |
Definition at line 173 of file IIGeometricFunctors.h.
References DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::eigenValues, DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::eigenVectors, and DGtal::EigenDecomposition< TN, TComponent, TMatrix >::getEigenDecomposition().
|
inline |
|
mutableprivate |
A data member only used for temporary calculations.
Definition at line 198 of file IIGeometricFunctors.h.
Referenced by DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::operator()().
|
mutableprivate |
A data member only used for temporary calculations.
Definition at line 196 of file IIGeometricFunctors.h.
Referenced by DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::operator()().