CASToR  1.0
Tomographic Reconstruction (PET/SPECT)
Public Member Functions | Private Attributes
iDeformationElastic Class Reference

This class is a squeleton implementation of the pure virtual vDeformation class. More...

#include <iDeformationElastic.hh>

Inheritance diagram for iDeformationElastic:
Inheritance graph
[legend]
Collaboration diagram for iDeformationElastic:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 iDeformationElastic ()
 Constructor of iDeformationRigid. Simply set all data members to default values.
 ~iDeformationElastic ()
 Destructor of iDeformationRigid. Free memory from all allocated tabs.
int ReadAndCheckConfigurationFile (const string &a_fileOptions)
 This function is an implementation of the pure virtual mother function. It is used to read options from a configuration file.
int ReadAndCheckOptionsList (const string &a_listOptions)
 This function is an implementation of the pure virtual mother function. It is used to read options from a list of options.
int CheckSpecificParameters ()
 This function is an implementation of the pure virtual mother function. It is used to check parameters of the child deformation model before initialization.
int Initialize ()
 This function is an implementation of the pure virtual mother function. It is used to initialize specific stuff to the child deformation model.
void ShowHelp ()
 This function is an implementation of the pure virtual mother function. It is used to print out specific help about the deformation model and its options.
int ApplyDeformations (FLTNB *ap_inputImage, FLTNB *ap_outputImage, int a_direction, int a_defIdx)
 This function is an implementation of the pure virtual mother function. The actual deformation should be implemented here.

Private Attributes

vector< string > m_pathToFwdDeformationFiles
vector< string > m_pathToBwdDeformationFiles

Detailed Description

This class is a squeleton implementation of the pure virtual vDeformation class.

Use this class to implement your own custom deformation model.

Definition at line 56 of file iDeformationElastic.hh.


Constructor & Destructor Documentation

Constructor of iDeformationRigid. Simply set all data members to default values.

Definition at line 14 of file iDeformationElastic.cc.

Destructor of iDeformationRigid. Free memory from all allocated tabs.

Definition at line 32 of file iDeformationElastic.cc.


Member Function Documentation

int iDeformationElastic::ApplyDeformations ( FLTNB ap_inputImage,
FLTNB ap_outputImage,
int  a_direction,
int  a_defIdx 
) [virtual]

This function is an implementation of the pure virtual mother function. The actual deformation should be implemented here.

Parameters:
FLTNB*ap_inputImage : input image to deform
FLTNB*ap_outputImage : image in which the output of the deformation should be recovered
inta_direction : a direction for the deformation to perform (forward or backward)
inta_defIdx : index of the deformation
Returns:
0 if success, other value otherwise.

Implements vDeformation.

Definition at line 240 of file iDeformationElastic.cc.

Here is the call graph for this function:

This function is an implementation of the pure virtual mother function. It is used to check parameters of the child deformation model before initialization.

Returns:
0 if success, other value otherwise.

Implements vDeformation.

Definition at line 156 of file iDeformationElastic.cc.

This function is an implementation of the pure virtual mother function. It is used to initialize specific stuff to the child deformation model.

Returns:
0 if success, other value otherwise.

Implements vDeformation.

Definition at line 203 of file iDeformationElastic.cc.

int iDeformationElastic::ReadAndCheckConfigurationFile ( const string &  a_fileOptions) [virtual]

This function is an implementation of the pure virtual mother function. It is used to read options from a configuration file.

Parameters:
conststring& a_configurationFile
Returns:
0 if success, other value otherwise.

Implements vDeformation.

Definition at line 64 of file iDeformationElastic.cc.

int iDeformationElastic::ReadAndCheckOptionsList ( const string &  a_listOptions) [virtual]

This function is an implementation of the pure virtual mother function. It is used to read options from a list of options.

Parameters:
conststring& a_optionsList
Returns:
0 if success, other value otherwise.

Implements vDeformation.

Definition at line 139 of file iDeformationElastic.cc.

void iDeformationElastic::ShowHelp ( ) [virtual]

This function is an implementation of the pure virtual mother function. It is used to print out specific help about the deformation model and its options.

Implements vDeformation.

Definition at line 48 of file iDeformationElastic.cc.


Member Data Documentation

Containers of the location of backward deformation file. It should be equal to the number of transformations 'm_nbTransformations'

Definition at line 133 of file iDeformationElastic.hh.

Containers of the location of forward deformation file. It should be equal to the number of transformations 'm_nbTransformations'

Definition at line 132 of file iDeformationElastic.hh.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines