Statismo  0.10.1
 All Classes Namespaces Functions Typedefs
Public Types | Public Member Functions | Static Public Member Functions | List of all members
vtkUnstructuredGridRepresenter Class Reference

A representer for vtkUnstructuredGrid using Procrustes alignment to align the datasets. More...

#include <vtkUnstructuredGridRepresenter.h>

Public Types

enum  AlignmentType { NONE =999, RIGID =VTK_LANDMARK_RIGIDBODY, SIMILARITY =VTK_LANDMARK_SIMILARITY, AFFINE =VTK_LANDMARK_AFFINE }
 
typedef vtkUnstructuredGrid * DatasetPointerType
 The type of the data set to be used.
 
typedef const vtkUnstructuredGrid * DatasetConstPointerType
 
typedef statismo::vtkPoint PointType
 
typedef statismo::vtkPoint ValueType
 
typedef statismo::Domain
< PointType
DomainType
 

Public Member Functions

vtkUnstructuredGridRepresenterClone () const
 
void Delete () const
 
const DomainTypeGetDomain () const
 
AlignmentType GetAlignment () const
 
DatasetConstPointerType GetReference () const
 
statismo::VectorType PointToVector (const PointType &pt) const
 
DatasetPointerType DatasetToSample (DatasetConstPointerType ds, DatasetInfo *notUsed) const
 
statismo::VectorType SampleToSampleVector (DatasetConstPointerType sample) const
 
DatasetPointerType SampleVectorToSample (const statismo::VectorType &sample) const
 
ValueType PointSampleFromSample (DatasetConstPointerType sample, unsigned ptid) const
 
statismo::VectorType PointSampleToPointSampleVector (const ValueType &v) const
 
ValueType PointSampleVectorToPointSample (const statismo::VectorType &pointSample) const
 
void Save (const H5::CommonFG &fg) const
 
unsigned GetNumberOfPoints () const
 
unsigned GetPointIdForPoint (const PointType &point) const
 

Static Public Member Functions

static
vtkUnstructuredGridRepresenter
Create (DatasetConstPointerType reference, AlignmentType alignment)
 
static
vtkUnstructuredGridRepresenter
Load (const H5::CommonFG &fg)
 
static std::string GetName ()
 
static unsigned GetDimensions ()
 
static void DeleteDataset (DatasetPointerType d)
 
static unsigned MapPointIdToInternalIdx (unsigned ptId, unsigned componentInd)
 

Detailed Description

A representer for vtkUnstructuredGrid using Procrustes alignment to align the datasets.

This class provides a specialization of the Representer for the type vtkUnstructuredGrid. Procrustes is used to align the given datasets with the reference. The user can choose between Rigid, Similarity and Affine alignment.

Hint: In order to use GPA alignment, simply set the Procrustes Mean as the reference.

Warning: This class does currently not provide any registration, which implies that the dataset that are read by the class need to be aligned.

See Representer for more details about representer classes


The documentation for this class was generated from the following files: