38 #ifndef __ItkStatisticalShapeModelTransform
39 #define __ItkStatisticalShapeModelTransform
44 #include <itkVector.h>
46 #include "itkStandardImageRepresenter.h"
47 #include "itkStatisticalModel.h"
48 #include "itkStatisticalModelTransformBase.h"
59 template <
class TRepresenter,
class TScalarType,
unsigned int TDimension >
66 typedef SmartPointer<Self> Pointer;
67 typedef SmartPointer<const Self> ConstPointer;
70 itkSimpleNewMacro(
Self );
77 typedef typename Superclass::InputPointType InputPointType;
78 typedef typename Superclass::OutputPointType OutputPointType;
79 typedef typename Superclass::RepresenterType RepresenterType;
85 ::itk::LightObject::Pointer smartPtr;
86 Pointer another = Self::New().GetPointer();
87 this->CopyBaseMembers(another);
89 smartPtr =
static_cast<Pointer
>(another);
102 typename RepresenterType::ValueType d;
104 d = this->m_StatisticalModel->DrawSampleAtPoint(this->m_coeff_vector, pt);
105 }
catch (ExceptionObject &e) {
106 std::cout <<
"exception occured at point " << pt << std::endl;
107 std::cout <<
"message " << e.what() << std::endl;
116 StatisticalShapeModelTransform(
const StatisticalShapeModelTransform& orig);
117 StatisticalShapeModelTransform& operator=(
const StatisticalShapeModelTransform& rhs);
123 #endif // __ItkStatisticalShapeModelTransform