#include <itkVectorFieldPCA.h>
Produce the principle components of a vector valued function.
This calculator produces a set of basis functions composed of the principal components of a set of vector valued functions.
Specify an itk::KernelFunction for Kernel PCA. The Kernel Function can take as input an optional point set.
This class is templated over the types of the vector valued functions, the output point types, and optionally the point set type.
This code was contributed in the Insight Journal paper:
"Principal Components Analysis of Scalar, Vector, and Mesh Vertex Data" https://www.insight-journal.org/browse/publication/878
Definition at line 111 of file itkVectorFieldPCA.h.
Inheritance diagram for itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >:
Collaboration diagram for itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >:Public Types | |
| using | BasisSetType = VectorContainer<unsigned int, MatrixType> |
| using | BasisSetTypePointer = typename BasisSetType::Pointer |
| using | ConstPointer = SmartPointer<const Self> |
| using | InputPointSetConstPointer = typename InputPointSetType::ConstPointer |
| using | InputPointSetPointer = typename InputPointSetType::Pointer |
| using | InputPointSetType = TPointSetType |
| using | InputPointType = typename InputPointSetType::PointType |
| using | KernelFunctionPointer = typename KernelFunctionType::Pointer |
| using | MatrixType = vnl_matrix<TPCType> |
| using | Pointer = SmartPointer<Self> |
| using | PointsContainer = typename InputPointSetType::PointsContainer |
| using | PointsContainerIterator = typename PointsContainer::Iterator |
| using | ResSetType = VectorContainer<unsigned int, VectorType> |
| using | Self = VectorFieldPCA |
| using | Superclass = Object |
| using | VectorFieldSetType = VectorContainer<unsigned int, VectorFieldType> |
| using | VectorFieldSetTypeConstPointer = typename VectorFieldSetType::ConstPointer |
| using | VectorFieldSetTypePointer = typename VectorFieldSetType::Pointer |
| using | VectorFieldType = vnl_matrix<TVectorFieldElementType> |
| using | VectorType = vnl_vector<TPCType> |
Public Types inherited from itk::Object | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = Object |
| using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = LightObject |
Public Member Functions | |
| void | Compute () |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| virtual const MatrixType & | GetAveVectorField () const |
| virtual const BasisSetType * | GetBasisVectors () const |
| virtual unsigned int | GetComponentCount () |
| virtual const char * | GetNameOfClass () const |
| virtual const VectorType & | GetPCAEigenValues () const |
| virtual InputPointSetPointer | GetPointSet () |
| virtual VectorFieldSetTypePointer | GetVectorFieldSet () |
| virtual void | SetComponentCount (unsigned int _arg) |
| virtual void | SetKernelFunction (KernelFunctionPointer _arg) |
| virtual void | SetPointSet (InputPointSetPointer _arg) |
| virtual void | SetVectorFieldSet (VectorFieldSetTypePointer _arg) |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | InputMeshDimension = TPointSetType::PointDimension |
Protected Member Functions | |
| void | ComputeMomentumSCP () |
| void | KernelPCA () |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| VectorFieldPCA () | |
| ~VectorFieldPCA () override=default | |
Protected Member Functions inherited from itk::Object | |
| Object () | |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| ~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
| virtual LightObject::Pointer | InternalClone () const |
| LightObject () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| virtual | ~LightObject () |
Private Attributes | |
| MatrixType | m_AveVectorField |
| BasisSetTypePointer | m_BasisVectors |
| unsigned int | m_ComponentCount { 0 } |
| MatrixType | m_K |
| KernelFunctionPointer | m_KernelFunction |
| bool | m_PCACalculated { false } |
| VectorType | m_PCAEigenValues |
| unsigned int | m_PointDim { 0 } |
| InputPointSetPointer | m_PointSet |
| unsigned int | m_SetSize { 0 } |
| MatrixType | m_V0 |
| unsigned int | m_VectorDimCount { 0 } |
| VectorFieldSetTypePointer | m_VectorFieldSet |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::BasisSetType = VectorContainer<unsigned int, MatrixType> |
Definition at line 160 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::BasisSetTypePointer = typename BasisSetType::Pointer |
Definition at line 163 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::ConstPointer = SmartPointer<const Self> |
Definition at line 120 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::InputPointSetConstPointer = typename InputPointSetType::ConstPointer |
Const Pointer type for the PointSet.
Definition at line 142 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::InputPointSetPointer = typename InputPointSetType::Pointer |
Pointer types for the PointSet.
Definition at line 139 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::InputPointSetType = TPointSetType |
Type definitions for the PointSet.
Definition at line 129 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::InputPointType = typename InputPointSetType::PointType |
Definitions for points of the PointSet.
Definition at line 132 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::KernelFunctionPointer = typename KernelFunctionType::Pointer |
Definition at line 164 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::MatrixType = vnl_matrix<TPCType> |
types for the output.
Definition at line 157 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::Pointer = SmartPointer<Self> |
Definition at line 119 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::PointsContainer = typename InputPointSetType::PointsContainer |
Definitions for the PointsContainer.
Definition at line 135 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::PointsContainerIterator = typename PointsContainer::Iterator |
Definition at line 136 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::ResSetType = VectorContainer<unsigned int, VectorType> |
Definition at line 161 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::Self = VectorFieldPCA |
Standard class type alias.
Definition at line 117 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::Superclass = Object |
Definition at line 118 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::VectorFieldSetType = VectorContainer<unsigned int, VectorFieldType> |
Definition at line 151 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::VectorFieldSetTypeConstPointer = typename VectorFieldSetType::ConstPointer |
Definition at line 154 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::VectorFieldSetTypePointer = typename VectorFieldSetType::Pointer |
Definition at line 153 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::VectorFieldType = vnl_matrix<TVectorFieldElementType> |
type for the vector fields.
Definition at line 150 of file itkVectorFieldPCA.h.
| using itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::VectorType = vnl_vector<TPCType> |
Definition at line 158 of file itkVectorFieldPCA.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
| void itk::VectorFieldPCA< TVectorFieldElementType, TPCType, TPointSetPixelType, TPointSetCoordRepType, KernelFunctionType, TPointSetType >::Compute | ( | ) |
Compute the PCA decomposition of the input point set. If a Kernel and a Kernel Sigma are set , the calculator will perform Kernel PCA.
|
protected |
Compute Momentum SCP.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
virtual |
Return the results.
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Object.
References VectorFieldPCA().
|
virtual |
|
virtual |
|
virtual |
|
protected |
Kernel PCA.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
|
virtual |
Set and get the PCA count.
|
virtual |
Set pointer to the Kernel object.
|
virtual |
Set and get the input point set.
|
virtual |
Set and get the vector fields for the analysis.
|
staticconstexpr |
Input PointSet dimension.
Definition at line 147 of file itkVectorFieldPCA.h.
|
private |
Definition at line 233 of file itkVectorFieldPCA.h.
|
private |
Definition at line 221 of file itkVectorFieldPCA.h.
|
private |
Definition at line 227 of file itkVectorFieldPCA.h.
|
private |
Definition at line 234 of file itkVectorFieldPCA.h.
|
private |
Definition at line 224 of file itkVectorFieldPCA.h.
|
private |
Definition at line 236 of file itkVectorFieldPCA.h.
|
private |
Definition at line 219 of file itkVectorFieldPCA.h.
|
private |
Definition at line 230 of file itkVectorFieldPCA.h.
|
private |
Definition at line 223 of file itkVectorFieldPCA.h.
|
private |
Definition at line 228 of file itkVectorFieldPCA.h.
|
private |
Definition at line 232 of file itkVectorFieldPCA.h.
|
private |
Definition at line 229 of file itkVectorFieldPCA.h.
|
private |
Definition at line 222 of file itkVectorFieldPCA.h.