39 #ifndef ITK_POSTERIOR_MODELBUILDER_H_
40 #define ITK_POSTERIOR_MODELBUILDER_H_
42 #include <itkObject.h>
44 #include "itkDataManager.h"
45 #include "itkStatisticalModel.h"
47 #include "PosteriorModelBuilder.h"
48 #include "statismoITKConfig.h"
61 typedef Object Superclass;
62 typedef SmartPointer<Self> Pointer;
63 typedef SmartPointer<const Self> ConstPointer;
70 typedef typename DataManagerType::DataItemListType DataItemListType;
75 typename boost::result_of<F()>::type callstatismoImpl(F f)
const {
79 itkExceptionMacro(<< s.what());
95 typedef statismo::Representer<T> RepresenterType;
96 typedef typename RepresenterType::ValueType ValueType;
97 typedef typename RepresenterType::PointType PointType;
98 typedef typename statismo::PosteriorModelBuilder<T>::PointValueListType PointValueListType;
99 typedef typename statismo::PosteriorModelBuilder<T>::PointValueWithCovariancePairType PointValueWithCovariancePairType;
100 typedef typename statismo::PosteriorModelBuilder<T>::PointValueWithCovarianceListType PointValueWithCovarianceListType;
104 typename StatisticalModelType::Pointer BuildNewModelFromModel(
const StatisticalModelType* model,
const PointValueListType& pointValues,
double pointValuesNoiseVariance,
bool computeScores=
true) {
108 this->m_impl, model_statismo, pointValues, pointValuesNoiseVariance, computeScores));
109 typename StatisticalModelType::Pointer model_itk = StatisticalModelType::New();
110 model_itk->SetstatismoImplObj(new_model_statismo);
114 typename StatisticalModelType::Pointer BuildNewModel(DataItemListType DataItemList,
const PointValueListType& pointValues,
double pointValuesNoiseVariance,
double noiseVariance) {
116 typename StatisticalModelType::Pointer model_itk = StatisticalModelType::New();
117 model_itk->SetstatismoImplObj(model_statismo);
121 typename StatisticalModelType::Pointer BuildNewModelFromModel(
const StatisticalModelType* model,
const PointValueWithCovarianceListType& pointValuesWithCovariance,
bool computeScores=
true) {
125 this->m_impl, model_statismo, pointValuesWithCovariance, computeScores));
126 typename StatisticalModelType::Pointer model_itk = StatisticalModelType::New();
127 model_itk->SetstatismoImplObj(new_model_statismo);
131 typename StatisticalModelType::Pointer BuildNewModel(
const DataItemListType& DataItemList,
const PointValueWithCovarianceListType& pointValuesWithCovariance,
double noiseVariance) {
133 typename StatisticalModelType::Pointer model_itk = StatisticalModelType::New();
134 model_itk->SetstatismoImplObj(model_statismo);
Manages Training and Test Data for building Statistical Models and provides functionality for Crossva...
Definition: DataManager.h:114
static PosteriorModelBuilder * Create()
Definition: PosteriorModelBuilder.h:94
ITK Wrapper for the statismo::PosteriorModelBuilder class.
Definition: itkPosteriorModelBuilder.h:57
StatisticalModelType * BuildNewModel(const DataItemListType &dataItemList, const PointValueListType &pointValues, double pointValueNoiseVariance, double noiseVariance) const
Definition: PosteriorModelBuilder.hxx:65
Generic Exception class for the statismo Library.
Definition: Exceptions.h:68
StatisticalModelType * BuildNewModelFromModel(const StatisticalModelType *model, const PointValueListType &pointValues, double pointValueNoiseVariance, bool computeScores=true) const
Definition: PosteriorModelBuilder.hxx:76
A Point/Value pair that is used to specify a value at a given point.
Definition: StatisticalModel.h:100
Given a statistical model (prior) and a set of point constraints (likelihood), generate a new PCA mod...
Definition: PosteriorModelBuilder.h:71
ITK Wrapper for the statismo::StatisticalModel class.
Definition: itkStatisticalModel.h:62