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 | |
vtkUnstructuredGridRepresenter * | Clone () const |
void | Delete () const |
const DomainType & | GetDomain () 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) |
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