Statismo  0.10.1
 All Classes Namespaces Functions Typedefs
Public Types | Public Member Functions | Static Public Member Functions | List of all members
itk::StandardMeshRepresenter< TPixel, MeshDimension > Class Template Reference

A representer for scalar valued itk Meshs. More...

#include <itkStandardMeshRepresenter.h>

Inherits statismo::Representer< T >, and Object.

Public Types

typedef StandardMeshRepresenter Self
 
typedef Object Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef itk::Mesh< TPixel,
MeshDimension > 
MeshType
 
typedef statismo::Representer
< MeshType > 
RepresenterBaseType
 
typedef
RepresenterBaseType::DomainType 
DomainType
 
typedef
RepresenterBaseType::PointType 
PointType
 
typedef
RepresenterBaseType::ValueType 
ValueType
 
typedef
RepresenterBaseType::DatasetPointerType 
DatasetPointerType
 
typedef
RepresenterBaseType::DatasetConstPointerType 
DatasetConstPointerType
 
typedef MeshType::PointsContainer PointsContainerType
 
typedef MeshType DatasetType
 The type of the data set to be used.
 
typedef boost::unordered_map
< PointType, unsigned > 
PointCacheType
 

Public Member Functions

 itkSimpleNewMacro (Self)
 
 itkTypeMacro (StandardMeshRepresenter, Object)
 
void Load (const H5::Group &fg)
 
StandardMeshRepresenterClone () const
 
unsigned GetDimensions () const
 
std::string GetName () const
 
RepresenterBaseType::RepresenterDataType GetType () const
 
std::string GetVersion () const
 
const DomainTypeGetDomain () const
 
void SetReference (DatasetPointerType ds)
 
statismo::VectorType PointToVector (const PointType &pt) const
 
DatasetPointerType DatasetToSample (DatasetConstPointerType ds) const
 
statismo::VectorType SampleToSampleVector (DatasetConstPointerType sample) const
 
DatasetPointerType SampleVectorToSample (const statismo::VectorType &sample) const
 
ValueType PointSampleFromSample (DatasetConstPointerType sample, unsigned ptid) const
 
ValueType PointSampleVectorToPointSample (const statismo::VectorType &pointSample) const
 
statismo::VectorType PointSampleToPointSampleVector (const ValueType &v) const
 
void Save (const H5::Group &fg) const
 
virtual unsigned GetNumberOfPoints () const
 return the number of points of the reference
 
virtual unsigned GetPointIdForPoint (const PointType &point) const
 
DatasetConstPointerType GetReference () const
 return the reference used in the representer
 
void Delete () const
 
void DeleteDataset (DatasetPointerType d) const
 
DatasetPointerType CloneDataset (DatasetConstPointerType mesh) const
 

Static Public Member Functions

static StandardMeshRepresenterCreate ()
 

Detailed Description

template<class TPixel, unsigned MeshDimension>
class itk::StandardMeshRepresenter< TPixel, MeshDimension >

A representer for scalar valued itk Meshs.

See Also
Representer

Member Function Documentation

template<class TPixel , unsigned MeshDimension>
StandardMeshRepresenter< TPixel, MeshDimension >::DatasetPointerType itk::StandardMeshRepresenter< TPixel, MeshDimension >::DatasetToSample ( DatasetConstPointerType  ds) const

Create a sample from the dataset. No alignment or registration is done

template<class TPixel , unsigned MeshDimension>
unsigned itk::StandardMeshRepresenter< TPixel, MeshDimension >::GetPointIdForPoint ( const PointType &  point) const
virtual

return the point id associated with the given point

Warning
This works currently only for points that are defined on the reference
template<class TPixel, unsigned MeshDimension>
itk::StandardMeshRepresenter< TPixel, MeshDimension >::itkSimpleNewMacro ( Self  )

New macro for creation of through a Smart Pointer.

template<class TPixel, unsigned MeshDimension>
itk::StandardMeshRepresenter< TPixel, MeshDimension >::itkTypeMacro ( StandardMeshRepresenter< TPixel, MeshDimension >  ,
Object   
)

Run-time type information (and related methods).

template<class TPixel , unsigned MeshDimension>
StandardMeshRepresenter< TPixel, MeshDimension >::ValueType itk::StandardMeshRepresenter< TPixel, MeshDimension >::PointSampleFromSample ( DatasetConstPointerType  sample,
unsigned  ptid 
) const

Returns the value of the sample at the point with the given id.

template<class TPixel , unsigned MeshDimension>
statismo::VectorType itk::StandardMeshRepresenter< TPixel, MeshDimension >::PointSampleToPointSampleVector ( const ValueType &  v) const

Given an itkPoint, convert it to a sample vector

template<class TPixel , unsigned MeshDimension>
StandardMeshRepresenter< TPixel, MeshDimension >::ValueType itk::StandardMeshRepresenter< TPixel, MeshDimension >::PointSampleVectorToPointSample ( const statismo::VectorType &  pointSample) const

Given a vector, represening a points convert it to an itkPoint

template<class TPixel , unsigned MeshDimension>
statismo::VectorType itk::StandardMeshRepresenter< TPixel, MeshDimension >::SampleToSampleVector ( DatasetConstPointerType  sample) const

Converts a sample to its vectorial representation

template<class TPixel , unsigned MeshDimension>
StandardMeshRepresenter< TPixel, MeshDimension >::DatasetPointerType itk::StandardMeshRepresenter< TPixel, MeshDimension >::SampleVectorToSample ( const statismo::VectorType &  sample) const

Converts the given sample Vector to a Sample (an itk::Mesh)

template<class TPixel , unsigned MeshDimension>
void itk::StandardMeshRepresenter< TPixel, MeshDimension >::Save ( const H5::Group &  fg) const

Save the state of the representer (this simply saves the reference)

template<class TPixel , unsigned MeshDimension>
void itk::StandardMeshRepresenter< TPixel, MeshDimension >::SetReference ( DatasetPointerType  ds)

Set the reference that is used to build the model


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