DGtal
1.5.beta
|
Aim: A functor Matrix -> RealVector that returns the first principal curvature direction by diagonalizing the given covariance matrix. This functor is valid starting from 2D space and is equivalent to IITangentDirectionFunctor in 2D. Note that by first we mean the direction with greatest curvature in absolute value. More...
#include <DGtal/geometry/surfaces/estimation/IIGeometricFunctors.h>
Public Types | |
typedef IIFirstPrincipalDirectionFunctor< 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)) | |
IIFirstPrincipalDirectionFunctor () | |
Default constructor. More... | |
IIFirstPrincipalDirectionFunctor (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 first principal curvature direction by diagonalizing the given covariance matrix. This functor is valid starting from 2D space and is equivalent to IITangentDirectionFunctor in 2D. Note that by first we mean the direction with greatest curvature in absolute value.
Description of template class 'IIFirstPrincipalDirectionFunctor'
TSpace | a model of CSpace, for instance SpaceND. |
TMatrix | a model of CMatrix, for instance SimpleMatrix. |
Definition at line 219 of file IIGeometricFunctors.h.
typedef Matrix DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Argument |
Definition at line 228 of file IIGeometricFunctors.h.
typedef RealVector::Component DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Component |
Definition at line 226 of file IIGeometricFunctors.h.
typedef TMatrix DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Matrix |
Definition at line 227 of file IIGeometricFunctors.h.
typedef RealVector DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Quantity |
Definition at line 229 of file IIGeometricFunctors.h.
typedef Space::RealVector DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::RealVector |
Definition at line 225 of file IIGeometricFunctors.h.
typedef IIFirstPrincipalDirectionFunctor<TSpace> DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Self |
Definition at line 223 of file IIGeometricFunctors.h.
typedef TSpace DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Space |
Definition at line 224 of file IIGeometricFunctors.h.
typedef Quantity DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::Value |
Definition at line 230 of file IIGeometricFunctors.h.
|
inline |
|
inline |
DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::BOOST_CONCEPT_ASSERT | ( | (concepts::CMatrix< Matrix >) | ) |
DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::BOOST_CONCEPT_ASSERT | ( | (concepts::CSpace< TSpace >) | ) |
DGtal::functors::IIFirstPrincipalDirectionFunctor< 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 271 of file IIGeometricFunctors.h.
|
inline |
Apply operator.
arg | any symmetric positive matrix (covariance matrix |
Definition at line 251 of file IIGeometricFunctors.h.
References DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::eigenValues, DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::eigenVectors, and DGtal::EigenDecomposition< TN, TComponent, TMatrix >::getEigenDecomposition().
|
inline |
|
mutableprivate |
A data member only used for temporary calculations.
Definition at line 277 of file IIGeometricFunctors.h.
Referenced by DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::operator()().
|
mutableprivate |
A data member only used for temporary calculations.
Definition at line 275 of file IIGeometricFunctors.h.
Referenced by DGtal::functors::IIFirstPrincipalDirectionFunctor< TSpace, TMatrix >::operator()().