CustusX
22.04-rc5
An IGT application
|
ElastiX command-line wrapper. More...
#include <cxElastixExecuter.h>
Public Member Functions | |
ElastixExecuter (RegServicesPtr services, QObject *parent=NULL) | |
virtual | ~ElastixExecuter () |
void | setDisplayProcessMessages (bool on) |
bool | setInput (QString application, DataPtr fixed, DataPtr moving, QString outdir, QStringList parameterfiles) |
virtual void | execute () |
virtual bool | isFinished () const |
virtual bool | isRunning () const |
Transform3D | getAffineResult_mMf (bool *ok=0) |
QString | getNonlinearResultVolume (bool *ok=0) |
Public Member Functions inherited from cx::TimedBaseAlgorithm | |
TimedBaseAlgorithm (QString product, int secondsBetweenAnnounce) | |
virtual | ~TimedBaseAlgorithm () |
virtual QString | getProduct () const |
Additional Inherited Members | |
Signals inherited from cx::TimedBaseAlgorithm | |
void | aboutToStart () |
emitted at start of execute. Use to perform preprocessing More... | |
void | started (int maxSteps) |
emitted at start of run. More... | |
void | finished () |
should be emitted when at the end of postProcessingSlot More... | |
void | productChanged () |
emitted whenever product string has changed More... | |
Protected Slots inherited from cx::TimedBaseAlgorithm | |
virtual void | finishedSlot () |
virtual void | postProcessingSlot () |
Protected Member Functions inherited from cx::TimedBaseAlgorithm | |
void | startTiming () |
void | stopTiming () |
QString | getSecondsPassedAsString () const |
Protected Attributes inherited from cx::TimedBaseAlgorithm | |
bool | mUseDefaultMessages |
ElastiX command-line wrapper.
This class wraps a call to the ElastiX library, http://elastix.isi.uu.nl .
Call the run method to execute an elastiX registration, wait for the signal finished(), then get the results using the getters.
Definition at line 49 of file cxElastixExecuter.h.
cx::ElastixExecuter::ElastixExecuter | ( | RegServicesPtr | services, |
QObject * | parent = NULL |
||
) |
Definition at line 32 of file cxElastixExecuter.cpp.
|
virtual |
Definition at line 42 of file cxElastixExecuter.cpp.
|
virtual |
Execute the algorithm. Parts of the execution can be in another thread, thus the call usually returns after preprocessing is complete. The exec starts by emitting aboutToStart(), which can be used by callers to set input arguments.
Implements cx::TimedBaseAlgorithm.
Definition at line 114 of file cxElastixExecuter.cpp.
Transform3D cx::ElastixExecuter::getAffineResult_mMf | ( | bool * | ok = 0 | ) |
Return the result of the latest registration as a linear transform mMf.
Read the descriptions in writeInitTransformToElastixfile() and getAffineResult_mmMff for a full discussion.
Definition at line 288 of file cxElastixExecuter.cpp.
QString cx::ElastixExecuter::getNonlinearResultVolume | ( | bool * | ok = 0 | ) |
Definition at line 362 of file cxElastixExecuter.cpp.
|
virtual |
Returns true after the finished() signal is emitted.
Implements cx::TimedBaseAlgorithm.
Definition at line 119 of file cxElastixExecuter.cpp.
|
virtual |
Returns true if preprocess is started and postprocess not complete. (Right after aboutToStart, right before finished())
Implements cx::TimedBaseAlgorithm.
Definition at line 125 of file cxElastixExecuter.cpp.
void cx::ElastixExecuter::setDisplayProcessMessages | ( | bool | on | ) |
Definition at line 48 of file cxElastixExecuter.cpp.
bool cx::ElastixExecuter::setInput | ( | QString | application, |
DataPtr | fixed, | ||
DataPtr | moving, | ||
QString | outdir, | ||
QStringList | parameterfiles | ||
) |
Definition at line 62 of file cxElastixExecuter.cpp.