CASToR
2.0
Tomographic Reconstruction (PET/SPECT/CT)
|
This is the mother class of image-based transformation class. More...
#include <vDeformation.hh>
Public Member Functions | |
vDeformation () | |
Constructor of vDeformation. Simply set all data members to default values. More... | |
virtual | ~vDeformation () |
Destructor of vDeformation. More... | |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
Set the image dimensions in use. More... | |
void | SetVerbose (int a_verbose) |
Set the verbose level. More... | |
void | SetNbTransformations (int a_nbTransformations) |
Set the number of transformation in the data to be performed on the dataset (equal to the number of gates in one frame) More... | |
virtual int | CheckParameters () |
This function is used to check parameters after the latter have been all set using Set functions. More... | |
virtual int | CheckSpecificParameters ()=0 |
This function is used to check the parameters of the child functions before initialization if required. More... | |
virtual int | ReadAndCheckConfigurationFile (const string &a_fileOptions)=0 |
This function is used to read options from a configuration file. It is pure virtual so must be implemented by children. More... | |
virtual int | ReadAndCheckOptionsList (const string &a_listOptions)=0 |
This function is used to read parameters from a string. It is pure virtual so must be implemented by children. More... | |
virtual int | Initialize ()=0 |
This function is used to initialize specific data related to the child deformation model. It is pure virtual so must be implemented by children. More... | |
virtual void | ShowHelp ()=0 |
This function is used to print out specific help about the deformation and its options. It is pure virtual so must be implemented by children. More... | |
virtual int | PerformDeformation (oImageSpace *ap_Image, int a_defIdx, int a_fr, int a_rimg, int a_cimg) |
Apply deformations during reconstruction. More... | |
virtual int | PerformDeformationBis (oImageSpace *ap_Image, int a_defIdx, int a_fr, int a_rimg, int a_cimg) |
virtual int | PerformHistoSensitivityDeformation (oImageSpace *ap_Image, int a_defIdx, int fr, int rimg, int cimg) |
Apply deformations on the sensitivity image during reconstruction in histogram mode. More... | |
virtual int | ApplyDeformationsToBackwardImage (oImageSpace *ap_Image, int a_fr, int a_defIdx) |
Apply backward transformation of the backward image to the reference position. More... | |
virtual int | ApplyDeformationsToHistoSensitivityImage (oImageSpace *ap_Image, int a_fr, int a_defIdx) |
Apply backward transformations of the sensitivity image to the reference position (histogram mode) More... | |
virtual int | PerformSensitivityDeformation (oImageSpace *ap_Image, int a_defDirection, int a_defIdx, int fr, int rg, int cg) |
Apply image deformations during sensitivity image generation for list-mode. More... | |
virtual int | ApplyDeformations (FLTNB *ap_inputImage, FLTNB *ap_outputImage, int a_direction, int a_defIdx)=0 |
This function prepares the deformation to perform It is a virtual pure deformation function to be implemented in the child class. More... | |
int | Tlerp (HPFLTNB *ap_inputImage, HPFLTNB *ap_outputImage, uint32_t iov, uint32_t iiv, FLTNB dX, FLTNB dY, FLTNB dZ) |
Protected Attributes | |
oImageDimensionsAndQuantification * | mp_ID |
int | m_verbose |
int | m_nbTransformations |
int | m_checked |
int | m_initialized |
This is the mother class of image-based transformation class.
This class is a virtual one, in the sense that it cannot be used on its own because several pure virtual functions belong to it. Its children are implementations of actual deformation models.
Everywhere in the code, this parent class should be used instead of any of its children.
It can be used during the projection/reconstruction process by the oDeformationManager through the use of the Deformation functions that cannot be overloaded:
Definition at line 65 of file vDeformation.hh.
vDeformation::vDeformation | ( | ) |
Constructor of vDeformation. Simply set all data members to default values.
Definition at line 43 of file vDeformation.cc.
|
virtual |
Destructor of vDeformation.
Definition at line 63 of file vDeformation.cc.
|
pure virtual |
This function prepares the deformation to perform
It is a virtual pure deformation function to be implemented in the child class.
ap_inputImage | : input image to deform |
ap_outputImage | : image in which the output of the deformation should be recovered |
a_direction | : a direction for the deformation to perform (forward or backward) |
a_defIdx | : index of the deformation |
Implemented in iDeformationTemplate.
|
virtual |
Apply backward transformation of the backward image to the reference position.
ap_Image | : required to access the backward image and its deformation backup matrice |
a_fr | : frame index |
a_defIdx | : index of the deformation |
Loop on frames
Recover any potential data stored in the backup matrice m2p_defTmpBackwardImage
Definition at line 135 of file vDeformation.cc.
|
virtual |
Apply backward transformations of the sensitivity image to the reference position (histogram mode)
ap_Image | : required to access the backward image and its deformation backup matrice |
a_fr | : frame index |
a_defIdx | : index of the deformation |
Loop on frames
Recover any potential data stored in the backup matrice m4p_defTmpSensitivityImage
Definition at line 203 of file vDeformation.cc.
|
virtual |
This function is used to check parameters after the latter have been all set using Set functions.
Definition at line 78 of file vDeformation.cc.
|
pure virtual |
This function is used to check the parameters of the child functions before initialization if required.
It could be overloaded by the child if needed. Default implementation is empty and return 0.
Implemented in iDeformationTemplate.
|
pure virtual |
This function is used to initialize specific data related to the child deformation model.
It is pure virtual so must be implemented by children.
Implemented in iDeformationTemplate.
|
virtual |
Apply deformations during reconstruction.
ap_Image | : required to access oImageSpace image matrices |
a_defIdx | : index of the deformation |
a_fr | : frame index |
a_rimg | : respiratory image index |
a_cimg | : cardiac image index |
Definition at line 257 of file vDeformation.cc.
|
virtual |
Definition at line 346 of file vDeformation.cc.
|
virtual |
Apply deformations on the sensitivity image during reconstruction in histogram mode.
ap_Image | : required to access oImageSpace image matrices |
a_defIdx | : index of the deformation |
fr | : frame index |
rimg | : respiratory image index |
cimg | : cardiac image index |
Definition at line 397 of file vDeformation.cc.
|
virtual |
Apply image deformations during sensitivity image generation for list-mode.
ap_Image | : required to access oImageSpace image matrices |
a_defDirection | : a direction for the deformation to perform (forward or backward) |
a_defIdx | : index of the deformation |
fr | : frame index |
rg | : respiratory gate index |
cg | : cardiac gate index |
Depending on the deformation direction (forward or backward):
Forward : Perform forward deformation of the forward image to the deformation index position
Backward: Perform backward deformation of the backward image to the reference position
Definition at line 461 of file vDeformation.cc.
|
pure virtual |
This function is used to read options from a configuration file.
It is pure virtual so must be implemented by children.
const | string& a_configurationFile : ASCII file containing informations about a deformation model |
Implemented in iDeformationTemplate.
|
pure virtual |
This function is used to read parameters from a string.
It is pure virtual so must be implemented by children.
const | string& a_optionsList : a list of parameters separated by commas |
Implemented in iDeformationTemplate.
|
inline |
Set the image dimensions in use.
oImageDimensionsAndQuantification* | ap_ImageDimensionsAndQuantification |
Definition at line 90 of file vDeformation.hh.
|
inline |
Set the number of transformation in the data to be performed on the dataset (equal to the number of gates in one frame)
a_nbTransformations |
Definition at line 105 of file vDeformation.hh.
|
inline |
Set the verbose level.
a_verboseLevel |
Definition at line 97 of file vDeformation.hh.
|
pure virtual |
This function is used to print out specific help about the deformation and its options.
It is pure virtual so must be implemented by children.
Implemented in iDeformationTemplate.
|
protected |
Boolean indicating whether the parameters were checked or not
Definition at line 263 of file vDeformation.hh.
|
protected |
Boolean indicating whether the manager was initialized or not
Definition at line 264 of file vDeformation.hh.
|
protected |
Number of transformations to be performed on the dataset (corresponding to the number of gates subsets of the data)
Definition at line 262 of file vDeformation.hh.
|
protected |
The verbose level
Definition at line 261 of file vDeformation.hh.
|
protected |
Pointer to the oImageDimensionsAndQuantification object in use
Definition at line 260 of file vDeformation.hh.