![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This class implements a general linear dynamic model applied between the images of a dynamic acquisition
The model is applied on a voxel-by-voxel basis between the images of the frames and/or respiratory/cardiac gates.
More...
#include <iLinearModel.hh>
Public Member Functions | |
iLinearModel () | |
Constructor of iLinearModel. Simply set all data members to default values. More... | |
~iLinearModel () | |
Destructor of iLinearModel. More... | |
int | CheckSpecificParameters () |
This function is used to check whether all member variables have been correctly initialized or not. More... | |
int | CheckSpecificParametersForAllLinearModels () |
This function is used to check parameters for all Linear Models. . More... | |
virtual int | ReadAndCheckConfigurationFileSpecific () |
This function is used to read options from a configuration file. More... | |
int | ReadAndCheckOptionsList (string a_listOptions) |
int | ReadAndCheckConfigurationFileSpecificToAllLinearModels () |
This function is used to read parameters that are generic for all Linear Models. . More... | |
int | InitializeSpecific () |
This function is used to initialize the parametric images and basis functions for all Linear Models. More... | |
int | InitializeSpecificToAllLinearModels () |
This function is used to initialize the parametric images and basis functions for all Linear Models. More... | |
void | ShowBasisFunctions () |
This function is used to print the basis functions. More... | |
void | ShowHelpModelSpecific () |
This function is used to print out specific help about the dynamic model and its options. It is pure virtual so must be implemented by children. More... | |
int | EstimateModelParameters (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | EstimateImageWithModel (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | NestedEM (oImageSpace *ap_ImageS, int a_ite) |
int | EstimateParametersWithNNLS (oImageSpace *ap_ImageS, int a_ite) |
int | Patlak_LS (oImageSpace *ap_ImageS, int a_ite) |
iLinearModel () | |
~iLinearModel () | |
int | CheckSpecificParameters () |
This function is used to check the parameters of the child functions before initialization if required. More... | |
int | CheckSpecificParametersForAllLinearModels () |
virtual int | ReadAndCheckConfigurationFileSpecific () |
This function is used to read options from a configuration file. It is pure virtual so must be implemented by children. More... | |
int | ReadAndCheckOptionsList (string a_listOptions) |
int | ReadAndCheckConfigurationFileSpecificToAllLinearModels () |
int | InitializeSpecific () |
A private function used to initialize everything specific to the child model. More... | |
int | InitializeSpecificToAllLinearModels () |
void | ShowBasisFunctions () |
void | ShowHelpModelSpecific () |
This function is used to print out specific help about the dynamic model and its options. It is pure virtual so must be implemented by children. More... | |
int | EstimateModelParameters (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | EstimateImageWithModel (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | NestedEM (oImageSpace *ap_ImageS, int a_ite) |
int | EstimateParametersWithNNLS (oImageSpace *ap_ImageS, int a_ite) |
int | Patlak_LS (oImageSpace *ap_ImageS, int a_ite) |
![]() | |
vDynamicModel () | |
Constructor of vDynamicModel. Simply set all data members to default values. More... | |
virtual | ~vDynamicModel () |
Destructor of vDynamicModel. More... | |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetVerbose (int a_verbose) |
virtual int | CheckParameters () |
This function is used to check parameters after the latter have been all set using Set functions. More... | |
int | ReadAndCheckConfigurationFile (string a_fileOptions) |
int | Initialize () |
A public function used to initialize the dynamic model. More... | |
void | ShowHelp () |
This function is used to print out general help about dynamic models. More... | |
virtual int | EstimateModel (oImageSpace *ap_Image, int a_ite, int a_sset) |
virtual int | EstimateImage (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | SaveParametricImages (int a_iteration, int a_subset=-1) |
virtual int | ApplyOutputFOVMaskingOnParametricImages () |
Mask the outside of the transaxial FOV based on the m_fovOutPercent. More... | |
bool | GetAICflag () |
bool | GetModelBasisFunctionsRequiredFlag () |
int | GetNbTimeBasisFunctions () |
FLTNB ** | GetTimeBasisFunctions () |
virtual void | ComputeOutputParImage () |
Compute output image using the m2p_parametricImages matrix Store the result in the m2p_outputParImages matrix. More... | |
void | SetUseModelInReconstruction (bool a_useModelInReconstruction) |
int | NNLS (FLTNB **A, int m, int n, FLTNB *B, FLTNB *X, FLTNB *rnorm, FLTNB *wp, FLTNB *zzp, int *indexp) |
vDynamicModel () | |
virtual | ~vDynamicModel () |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetVerbose (int a_verbose) |
virtual int | CheckParameters () |
int | ReadAndCheckConfigurationFile (string a_fileOptions) |
int | Initialize () |
void | ShowHelp () |
virtual int | EstimateModel (oImageSpace *ap_Image, int a_ite, int a_sset) |
virtual int | EstimateImage (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | SaveParametricImages (int a_iteration, int a_subset=-1) |
virtual int | ApplyOutputFOVMaskingOnParametricImages () |
bool | GetAICflag () |
bool | GetModelBasisFunctionsRequiredFlag () |
int | GetNbTimeBasisFunctions () |
FLTNB ** | GetTimeBasisFunctions () |
virtual void | ComputeOutputParImage () |
void | SetUseModelInReconstruction (bool a_useModelInReconstruction) |
int | NNLS (FLTNB **A, int m, int n, FLTNB *B, FLTNB *X, FLTNB *rnorm, FLTNB *wp, FLTNB *zzp, int *indexp) |
This class implements a general linear dynamic model applied between the images of a dynamic acquisition
The model is applied on a voxel-by-voxel basis between the images of the frames and/or respiratory/cardiac gates.
Definition at line 40 of file code/include/dynamic/iLinearModel.hh.
iLinearModel::iLinearModel | ( | ) |
Constructor of iLinearModel. Simply set all data members to default values.
Definition at line 19 of file code/src/dynamic/iLinearModel.cc.
iLinearModel::~iLinearModel | ( | ) |
Destructor of iLinearModel.
Definition at line 54 of file code/src/dynamic/iLinearModel.cc.
iLinearModel::iLinearModel | ( | ) |
iLinearModel::~iLinearModel | ( | ) |
|
virtual |
This function is used to check whether all member variables have been correctly initialized or not.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearModelTemplate, iLinearPatlakModel, iLinearPatlakModel, iLinearSpectralModel, and iLinearSpectralModel.
Definition at line 420 of file code/src/dynamic/iLinearModel.cc.
|
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.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
int iLinearModel::CheckSpecificParametersForAllLinearModels | ( | ) |
This function is used to check parameters for all Linear Models.
.
Definition at line 447 of file code/src/dynamic/iLinearModel.cc.
int iLinearModel::CheckSpecificParametersForAllLinearModels | ( | ) |
|
virtual |
Implements vDynamicModel.
Definition at line 1881 of file code/src/dynamic/iLinearModel.cc.
|
virtual |
Implements vDynamicModel.
|
virtual |
Implements vDynamicModel.
Definition at line 990 of file code/src/dynamic/iLinearModel.cc.
|
virtual |
Implements vDynamicModel.
int iLinearModel::EstimateParametersWithNNLS | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
int iLinearModel::EstimateParametersWithNNLS | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
Definition at line 1569 of file code/src/dynamic/iLinearModel.cc.
|
virtual |
A private function used to initialize everything specific to the child model.
This function is used to initialize everything specific to the model that should be initialized. It is called by the Initialize() function. It is pure virtual so is implemented only by children.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
|
virtual |
This function is used to initialize the parametric images and basis functions for all Linear Models.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearModelTemplate, iLinearPatlakModel, iLinearPatlakModel, iLinearSpectralModel, and iLinearSpectralModel.
Definition at line 951 of file code/src/dynamic/iLinearModel.cc.
int iLinearModel::InitializeSpecificToAllLinearModels | ( | ) |
int iLinearModel::InitializeSpecificToAllLinearModels | ( | ) |
This function is used to initialize the parametric images and basis functions for all Linear Models.
Definition at line 520 of file code/src/dynamic/iLinearModel.cc.
int iLinearModel::NestedEM | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
Definition at line 1072 of file code/src/dynamic/iLinearModel.cc.
int iLinearModel::NestedEM | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
int iLinearModel::Patlak_LS | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
int iLinearModel::Patlak_LS | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
Definition at line 1808 of file code/src/dynamic/iLinearModel.cc.
|
virtual |
This function is used to read options from a configuration file.
It is pure virtual so must be implemented by children.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearModelTemplate, iLinearPatlakModel, iLinearPatlakModel, iLinearSpectralModel, and iLinearSpectralModel.
|
virtual |
This function is used to read options from a configuration file.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearModelTemplate, iLinearPatlakModel, iLinearPatlakModel, iLinearSpectralModel, and iLinearSpectralModel.
Definition at line 212 of file code/src/dynamic/iLinearModel.cc.
int iLinearModel::ReadAndCheckConfigurationFileSpecificToAllLinearModels | ( | ) |
This function is used to read parameters that are generic for all Linear Models.
.
Definition at line 236 of file code/src/dynamic/iLinearModel.cc.
int iLinearModel::ReadAndCheckConfigurationFileSpecificToAllLinearModels | ( | ) |
|
virtual |
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearModelTemplate, iLinearPatlakModel, iLinearPatlakModel, iLinearSpectralModel, and iLinearSpectralModel.
Definition at line 391 of file code/src/dynamic/iLinearModel.cc.
|
virtual |
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
void iLinearModel::ShowBasisFunctions | ( | ) |
This function is used to print the basis functions.
Definition at line 919 of file code/src/dynamic/iLinearModel.cc.
void iLinearModel::ShowBasisFunctions | ( | ) |
|
virtual |
This function is used to print out specific help about the dynamic model and its options. It is pure virtual so must be implemented by children.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearModelTemplate, iLinearPatlakModel, iLinearPatlakModel, iLinearSpectralModel, and iLinearSpectralModel.
Definition at line 117 of file code/src/dynamic/iLinearModel.cc.
|
virtual |
This function is used to print out specific help about the dynamic model and its options. It is pure virtual so must be implemented by children.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
|
protected |
Vector containing the cardiac gating model temporal basis functions
2 pointers:
1: index of the temporal function
2: coefficient of the functions for each cardiac gate
Definition at line 183 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Vector containing the respiratory gating model temporal basis functions
2 pointers:
1: index of the temporal function
2: coefficient of the functions for each respiratory gate
Definition at line 179 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Index to compute the ratio for the parametric images/basis functions updates cycle
Definition at line 195 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Ratio for the parametric images/basis functions updates cycle.
Cycles consist in 'm_basisFunctionsUpdRate' iterations of the parametric images, following by 'm_basisFunctionsUpdRate' iterations of the basis functions
Definition at line 193 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Starting iteration for the update of basis functions.
If negative, no update of the basis functions is performed (only parametric images are updated)
Definition at line 191 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Number of time basis functions applied to cardiac gates in the model
Definition at line 175 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Number of iteration of the model (one cycle consists in several updates of either the parametric images or the basis function)
Definition at line 190 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Number of time basis functions applied to respiratory gates in the model
Definition at line 174 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Number indicating the method to estimate parameters, from the available options.
Definition at line 173 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Image matrix containing correction factors for the parametric images updates
Definition at line 188 of file code/include/dynamic/iLinearModel.hh.
|
protected |
Vector containing correction factors for the temporal basis functions updates
Definition at line 189 of file code/include/dynamic/iLinearModel.hh.