19#ifndef itkVectorFieldPCA_h
20#define itkVectorFieldPCA_h
25#include "vnl/vnl_vector.h"
26#include "vnl/vnl_matrix.h"
54template <
typename TRealValueType =
double>
79 itkGetMacro(KernelSigma,
double);
85 Evaluate(
const TRealValueType & u)
const override
104template <
typename TVectorFieldElementType,
106 typename TPointSetPixelType = float,
107 typename TPointSetCoordRepType = float,
108 typename KernelFunctionType = KernelFunctionBase<TPointSetCoordRepType>,
109 class TPointSetType =
110 PointSet<TPointSetPixelType, 3, DefaultStaticMeshTraits<TPointSetPixelType, 3, 3, TPointSetCoordRepType>>>
182 itkGetMacro(ComponentCount,
unsigned int);
241#ifndef ITK_MANUAL_INSTANTIATION
242# include "itkVectorFieldPCA.hxx"
~GaussianDistanceKernel() override=default
void SetKernelSigma(double s)
Set and get the Kernel sigma.
GaussianDistanceKernel()=default
KernelFunctionBase< TRealValueType > Superclass
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
TRealValueType Evaluate(const TRealValueType &u) const override
Evaluate the function. Input is the squared distance.
void PrintSelf(std::ostream &os, Indent indent) const override
double m_OneOverMinusTwoSigmaSqr
GaussianDistanceKernel Self
Control indentation during Print() invocation.
KernelFunctionBase()=default
virtual void PrintSelf(std::ostream &os, Indent indent) const
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Implements transparent reference counting.
typename VectorFieldSetType::Pointer VectorFieldSetTypePointer
VectorType m_PCAEigenValues
void PrintSelf(std::ostream &os, Indent indent) const override
MatrixType m_AveVectorField
typename InputPointSetType::ConstPointer InputPointSetConstPointer
vnl_matrix< TVectorFieldElementType > VectorFieldType
typename KernelFunctionType::Pointer KernelFunctionPointer
~VectorFieldPCA() override=default
vnl_vector< TPCType > VectorType
InputPointSetPointer m_PointSet
KernelFunctionPointer m_KernelFunction
VectorContainer< unsigned int, VectorFieldType > VectorFieldSetType
VectorContainer< unsigned int, VectorType > ResSetType
void Compute()
Compute the PCA decomposition of the input point set. If a Kernel and a Kernel Sigma are set ,...
SmartPointer< Self > Pointer
typename InputPointSetType::Pointer InputPointSetPointer
void ComputeMomentumSCP()
unsigned int m_ComponentCount
typename InputPointSetType::PointsContainer PointsContainer
TPointSetType InputPointSetType
typename InputPointSetType::PointType InputPointType
vnl_matrix< TPCType > MatrixType
static constexpr unsigned int InputMeshDimension
Input PointSet dimension.
unsigned int m_VectorDimCount
VectorFieldSetTypePointer m_VectorFieldSet
SmartPointer< const Self > ConstPointer
typename BasisSetType::Pointer BasisSetTypePointer
BasisSetTypePointer m_BasisVectors
typename PointsContainer::Iterator PointsContainerIterator
typename VectorFieldSetType::ConstPointer VectorFieldSetTypeConstPointer
VectorContainer< unsigned int, MatrixType > BasisSetType
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer
#define itkSetMacro(name, type)