39 #ifndef ITK_DATAMANAGER_WITH_SURROGATES_H_
40 #define ITK_DATAMANAGER_WITH_SURROGATES_H_
42 #include <boost/bind.hpp>
43 #include <boost/utility/result_of.hpp>
45 #include <itkObject.h>
46 #include <itkObjectFactory.h>
48 #include "DataManagerWithSurrogates.h"
49 #include "statismoITKConfig.h"
58 template <
class Representer>
65 typedef SmartPointer<Self> Pointer;
66 typedef SmartPointer<const Self> ConstPointer;
75 typename boost::result_of<F()>::type callstatismoImpl(F f)
const {
77 itkExceptionMacro(<<
"Model not properly initialized. Maybe you forgot to call SetParameters");
82 itkExceptionMacro(<< s.what());
97 void SetstatismoImplObj(
ImplType* impl) {
104 void SetRepresenterAndSurrogateFilename(
const Representer* representer,
const char* surrogTypeFilename) {
108 void SetRepresenter(
const Representer* representer) {
109 itkExceptionMacro(<<
"Please call SetRepresenterAndSurrogateFilename to initialize the object");
114 void AddDatasetWithSurrogates(
typename Representer::DatasetConstPointerType ds,
115 const char* datasetURI,
116 const char* surrogateFilename) {
Manages Training and Test Data for building Statistical Models and provides functionality for Crossva...
Definition: DataManager.h:114
Manages Training and Test Data for building Statistical Models and provides functionality for Crossva...
Definition: DataManagerWithSurrogates.h:56
static DataManagerWithSurrogates< T > * Create(const RepresenterType *representer, const std::string &surrogTypeFilename)
Definition: DataManagerWithSurrogates.h:86
Generic Exception class for the statismo Library.
Definition: Exceptions.h:68
ITK Wrapper for the statismo::DataManager class.
Definition: itkDataManagerWithSurrogates.h:59
void AddDatasetWithSurrogates(DatasetConstPointerType ds, const std::string &datasetURI, const std::string &surrogateFilename)
Definition: DataManagerWithSurrogates.hxx:79