25 #ifndef SIMPLEELASTIXREGISTRATIONACTION_H
26 #define SIMPLEELASTIXREGISTRATIONACTION_H
55 Q_ENUM(TransformationType)
61 virtual bool event(QEvent* e)
override;
78 QString lastStdOutput;
79 QString lastProcessError;
85 void updateElastixVersion();
88 void defineElastixExecutable();
91 QString defaultResultName()
const;
98 QString transformName()
const;
105 bool createParameterFile(QFileInfo parameterFileInfo, QString initialization, QString transformType, QString similarityMetric)
const;
108 bool runElastix(QStringList arguments, QString workingDirectory =
"");
112 QString copyResults(QString tempDir)
const;
116 bool copyFile(QString oldName, QDir source, QString newName, QDir destination)
const;
119 bool replaceInFile(
const QString& fileName,
const QString& searchString,
const QString& replacementString)
const;
#define ELASTIX_REGISTRATION_API
Definition: ElastixRegistrationAPI.h:8
Perform a registration.
Definition: SimpleElastixRegistrationAction.h:40
TransformationType
Possible Transformation.
Definition: SimpleElastixRegistrationAction.h:54
@ AFFINE
Definition: SimpleElastixRegistrationAction.h:54
MetricType
Definition: SimpleElastixRegistrationAction.h:57
@ ADVANCED_MATTES_MUTUAL_INFORMATION
Definition: SimpleElastixRegistrationAction.h:57
This class describes what is a generic Action extension.
Definition: ActionExtension.h:57
Action class is an abstract class that enables you to build a action (generally on a component).
Definition: Action.h:209
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition: Action.h:225
virtual camitk::Action::ApplyStatus apply()=0
This method is called when the action has to be applied on the target list (get the target lists usin...
virtual QWidget * getWidget()
This method has to be redefined in your Action only if:
Definition: Action.cpp:168
The manager of the Image Volume data.
Definition: ImageComponent.h:77