17 #ifndef MITKRIGIDREGISTRATIONPRESET_H_HEADER
18 #define MITKRIGIDREGISTRATIONPRESET_H_HEADER
21 #include <vtkXMLParser.h>
59 bool LoadPreset(std::string fileName);
63 itk::Array<double> getTransformValues(std::string name);
67 itk::Array<double> getMetricValues(std::string name);
71 itk::Array<double> getOptimizerValues(std::string name);
75 itk::Array<double> getInterpolatorValues(std::string name);
77 std::list<std::string> &getAvailablePresets();
82 std::map<std::string, itk::Array<double>> &getTransformValuesPresets();
86 std::map<std::string, itk::Array<double>> &getMetricValuesPresets();
90 std::map<std::string, itk::Array<double>> &getOptimizerValuesPresets();
94 std::map<std::string, itk::Array<double>> &getInterpolatorValuesPresets();
102 bool newPresets(
std::map<std::string, itk::Array<double>> newTransformValues,
103 std::map<std::string, itk::Array<double>> newMetricValues,
104 std::map<std::string, itk::Array<double>> newOptimizerValues,
105 std::map<std::string, itk::Array<double>> newInterpolatorValues,
106 std::string fileName =
"");
112 void StartElement(
const char *elementName,
const char **atts)
override;
142 itk::Array<double> loadTransformValues(itk::Array<double> transformValues,
double transform,
const char **atts);
146 itk::Array<double> loadMetricValues(itk::Array<double> metricValues,
double metric,
const char **atts);
150 itk::Array<double> loadOptimizerValues(itk::Array<double> optimizerValues,
double optimizer,
const char **atts);
154 itk::Array<double> loadInterpolatorValues(
155 itk::Array<double> interpolatorValues );
160 std::string ReadXMLStringAttribut(std::string name,
const char **atts);
163 std::map<std::string, itk::Array<double>> m_TransformValues;
164 std::map<std::string, itk::Array<double>> m_MetricValues;
165 std::map<std::string, itk::Array<double>> m_OptimizerValues;
166 std::map<std::string, itk::Array<double>> m_InterpolatorValues;
167 std::list<std::string> m_LoadedPresets;
169 std::string m_XmlFileName;
Class to load and save parameter presets for rigid registration.
#define MITKRIGIDREGISTRATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITKMATCHPOINTREGISTRATION_EXPORT ResultImageType::Pointer map(const InputImageType *input, const RegistrationType *registration, bool throwOnOutOfInputAreaError=false, const double &paddingValue=0, const ResultImageGeometryType *resultGeometry=NULL, bool throwOnMappingError=true, const double &errorValue=0, mitk::ImageMappingInterpolator::Type interpolatorType=mitk::ImageMappingInterpolator::Linear)