DGtal 1.4.0
|
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. | |
IITangentDirectionFunctor (const Self &) | |
Copy constructor. Nothing to do. | |
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. | |
RealVector | eigenValues |
A data member only used for temporary calculations. | |
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::SpaceND< dim, TInteger >::dimension, DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::eigenValues, and DGtal::functors::IITangentDirectionFunctor< TSpace, TMatrix >::eigenVectors.
|
inline |
Assignment. Nothing to do.
Definition at line 164 of file IIGeometricFunctors.h.
|
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()().