38 #ifndef ITKLOWRANKMODELBUILDER_H_
39 #define ITKLOWRANKMODELBUILDER_H_
41 #include <itkObject.h>
42 #include <itkObjectFactory.h>
44 #include "itkStatisticalModel.h"
47 #include "LowRankGPModelBuilder.h"
48 #include "Representer.h"
49 #include "statismoITKConfig.h"
63 typedef statismo::Representer<T> RepresenterType;
64 typedef Object Superclass;
65 typedef SmartPointer<Self> Pointer;
66 typedef SmartPointer<const Self> ConstPointer;
80 void SetstatismoImplObj(
ImplType* impl) {
88 void SetRepresenter(
const RepresenterType* representer) {
99 typename StatisticalModelType::Pointer BuildNewZeroMeanModel(
101 unsigned numPointsForNystrom = 500)
const {
103 itkExceptionMacro(<<
"Model not properly initialized. Maybe you forgot to call SetRepresenter");
112 itkExceptionMacro(<< s.what());
116 model_itk->SetstatismoImplObj(model_statismo);
121 typename StatisticalModelType::Pointer BuildNewModel(
typename RepresenterType::DatasetType* mean,
const MatrixValuedKernelType& kernel,
unsigned numComponents,
unsigned numPointsForNystrom = 500) {
123 itkExceptionMacro(<<
"Model not properly initialized. Maybe you forgot to call SetRepresenter");
128 model_statismo = this->m_impl->
BuildNewModel(mean, kernel, numComponents, numPointsForNystrom);
131 itkExceptionMacro(<< s.what());
136 model_itk->SetstatismoImplObj(model_statismo);
StatisticalModelType * BuildNewZeroMeanModel(const MatrixValuedKernelType &kernel, unsigned numComponents, unsigned numPointsForNystrom=500) const
Definition: LowRankGPModelBuilder.h:138
StatisticalModelType * BuildNewModel(typename RepresenterType::DatasetConstPointerType mean, const MatrixValuedKernelType &kernel, unsigned numComponents, unsigned numPointsForNystrom=500) const
Definition: LowRankGPModelBuilder.h:162
static LowRankGPModelBuilder * Create(const RepresenterType *representer)
Definition: LowRankGPModelBuilder.h:110
Generic Exception class for the statismo Library.
Definition: Exceptions.h:68
Definition: LowRankGPModelBuilder.h:92
ITK Wrapper for the statismo::LowRankGPModelBuilder class.
Definition: itkLowRankGPModelBuilder.h:59
A Point/Value pair that is used to specify a value at a given point.
Definition: StatisticalModel.h:100
ITK Wrapper for the statismo::StatisticalModel class.
Definition: itkStatisticalModel.h:62