39 #ifndef ITK_PARTIALLY_FIXED_MODELBUILDER_H_
40 #define ITK_PARTIALLY_FIXED_MODELBUILDER_H_
42 #include <itkObject.h>
44 #include "itkDataManager.h"
45 #include "itkStatisticalModel.h"
47 #include "ReducedVarianceModelBuilder.h"
48 #include "statismoITKConfig.h"
49 #include "StatismoUtils.h"
57 template <
class Representer>
62 typedef Object Superclass;
63 typedef SmartPointer<Self> Pointer;
64 typedef SmartPointer<const Self> ConstPointer;
73 typename boost::result_of<F()>::type callstatismoImpl(F f)
const {
77 itkExceptionMacro(<< s.what());
93 typename StatisticalModel<Representer>::Pointer BuildNewModelWithLeadingComponents(
const StatisticalModel<Representer>* model,
unsigned numberOfPrincipalComponents) {
97 model_itk->SetstatismoImplObj(new_model_statismo);
101 typename StatisticalModel<Representer>::Pointer BuildNewModelWithVariance(
const StatisticalModel<Representer>* model,
double totalVariance) {
105 model_itk->SetstatismoImplObj(new_model_statismo);
109 is_deprecated
typename StatisticalModel<Representer>::Pointer BuildNewModelFromModel(
const StatisticalModel<Representer>* model,
double totalVariance) {
113 model_itk->SetstatismoImplObj(new_model_statismo);
static ReducedVarianceModelBuilder * Create()
Definition: ReducedVarianceModelBuilder.h:71
ITK Wrapper for the statismo::ReducedVarianceModelBuilder class.
Definition: itkReducedVarianceModelBuilder.h:58
StatisticalModelType * BuildNewModelWithVariance(const StatisticalModelType *model, double totalVariance) const
Definition: ReducedVarianceModelBuilder.hxx:97
Builds a new model which retains only the specified total variance.
Definition: ReducedVarianceModelBuilder.h:60
Generic Exception class for the statismo Library.
Definition: Exceptions.h:68
StatisticalModelType * BuildNewModelWithLeadingComponents(const StatisticalModelType *model, unsigned numberOfPrincipalComponents) const
Definition: ReducedVarianceModelBuilder.hxx: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