25#ifndef SIMPLEELASTIXREGISTRATIONACTION_H
26#define SIMPLEELASTIXREGISTRATIONACTION_H
58 Q_ENUM(TransformationType)
64 virtual bool event(QEvent* e)
override;
81 QString lastStdOutput;
82 QString lastProcessError;
89 void updateElastixVersion();
92 void defineElastixExecutable();
95 QString defaultResultName()
const;
102 QString transformName()
const;
109 bool createParameterFile(QFileInfo parameterFileInfo, QString initialization, QString transformType, QString similarityMetric)
const;
112 bool runElastix(QStringList arguments, QString workingDirectory =
"");
116 QString copyResults(QString tempDir)
const;
120 bool copyFile(QString oldName, QDir source, QString newName, QDir destination)
const;
123 bool replaceInFile(
const QString& fileName,
const QString& searchString,
const QString& replacementString)
const;
#define ELASTIX_REGISTRATION_API
Definition ElastixRegistrationAPI.h:8
Definition PersistenceManager.h:30
Perform a registration.
Definition SimpleElastixRegistrationAction.h:43
TransformationType
Possible Transformation.
Definition SimpleElastixRegistrationAction.h:57
@ AFFINE
Definition SimpleElastixRegistrationAction.h:57
MetricType
Definition SimpleElastixRegistrationAction.h:60
@ ADVANCED_MATTES_MUTUAL_INFORMATION
Definition SimpleElastixRegistrationAction.h:60
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 an algorithm that wor...
Definition Action.h:215
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition Action.h:231
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:178
The manager of the Image Volume data.
Definition ImageComponent.h:76