Fraxinus  16.5.0-fx-rc8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ElastixExecuter Class Reference

ElastiX command-line wrapper. More...

#include <cxElastixExecuter.h>

Inheritance diagram for cx::ElastixExecuter:
cx::TimedBaseAlgorithm

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
 

Detailed Description

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.

Date
Feb 4, 2012
Author
Christian Askeland, SINTEF

Definition at line 70 of file cxElastixExecuter.h.

Constructor & Destructor Documentation

cx::ElastixExecuter::ElastixExecuter ( RegServicesPtr  services,
QObject *  parent = NULL 
)

Definition at line 53 of file cxElastixExecuter.cpp.

cx::ElastixExecuter::~ElastixExecuter ( )
virtual

Definition at line 63 of file cxElastixExecuter.cpp.

Member Function Documentation

void cx::ElastixExecuter::execute ( )
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 135 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 309 of file cxElastixExecuter.cpp.

QString cx::ElastixExecuter::getNonlinearResultVolume ( bool *  ok = 0)

Definition at line 383 of file cxElastixExecuter.cpp.

bool cx::ElastixExecuter::isFinished ( ) const
virtual

Returns true after the finished() signal is emitted.

Implements cx::TimedBaseAlgorithm.

Definition at line 140 of file cxElastixExecuter.cpp.

bool cx::ElastixExecuter::isRunning ( ) const
virtual

Returns true if preprocess is started and postprocess not complete. (Right after aboutToStart, right before finished())

Implements cx::TimedBaseAlgorithm.

Definition at line 146 of file cxElastixExecuter.cpp.

void cx::ElastixExecuter::setDisplayProcessMessages ( bool  on)

Definition at line 69 of file cxElastixExecuter.cpp.

bool cx::ElastixExecuter::setInput ( QString  application,
DataPtr  fixed,
DataPtr  moving,
QString  outdir,
QStringList  parameterfiles 
)

Definition at line 83 of file cxElastixExecuter.cpp.


The documentation for this class was generated from the following files: