![]() |
CASToR
3.0
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) |
This function is used to read parameters from a string. More... | |
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 | ShowHelp () |
Print out specific help about the implementation of this model and its initialization. More... | |
int | EstimateModelParameters (oImageSpace *ap_Image, int a_ite, int a_sset) |
Estimate model parameters (parametric images and basis functions) More... | |
int | EstimateImageWithModel (oImageSpace *ap_Image, int a_ite, int a_sset) |
Re-estimate image using the linear parametric images and basis functions. More... | |
int | NestedEM (oImageSpace *ap_ImageS, int a_ite) |
Estimate parametric images and basis functions (if enabled) using the nested EM method. More... | |
int | EstimateParametersWithNNLS (oImageSpace *ap_ImageS, int a_ite) |
Estimate parametric images using the NNLS method. More... | |
int | Patlak_LS (oImageSpace *ap_ImageS, int a_ite) |
Estimate parametric images using linear regression. More... | |
![]() | |
vDynamicModel () | |
Constructor of vDynamicModel. Simply set all data members to default values. More... | |
virtual | ~vDynamicModel () |
Destructor of vDynamicModel. More... | |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
Set the image dimensions in use. More... | |
void | SetVerbose (int a_verbose) |
Set the verbose level. More... | |
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) |
This function is used to read options from a configuration file. It looks for the parameters implemented by the mother class, such as 'No image update', 'No parameters update', or 'Save parametric images'. More... | |
int | Initialize () |
A public function used to initialize the dynamic model. More... | |
virtual int | EstimateModel (oImageSpace *ap_Image, int a_ite, int a_sset) |
This function checks if the EstimateModelParameters() function (specific to each model) must be called at this stage of the reconstruction depending on the m_xxxUpdateflags. More... | |
virtual int | EstimateImage (oImageSpace *ap_Image, int a_ite, int a_sset) |
int | SaveParametricImages (int a_iteration, int a_subset=-1) |
This function is virtual it can be overloaded by children if required. More... | |
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... | |
int | NNLS (FLTNB **A, int m, int n, FLTNB *B, FLTNB *X, FLTNB *rnorm, FLTNB *wp, FLTNB *zzp, int *indexp) |
Implementation of NNLS (non-negative least squares) algorithm Derived from Turku PET center libraries (authors: Vesa Oikonen and Kaisa Sederholm) This routine is based on the text and fortran code in C.L. Lawson and R.J. Hanson, Solving Least Squares Problems, Prentice-Hall, Englewood Cliffs, New Jersey, 1974. More... | |
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 62 of file iLinearModel.hh.
iLinearModel::iLinearModel | ( | ) |
Constructor of iLinearModel. Simply set all data members to default values.
Definition at line 41 of file iLinearModel.cc.
iLinearModel::~iLinearModel | ( | ) |
Destructor of iLinearModel.
Definition at line 76 of file iLinearModel.cc.
|
virtual |
This function is used to check whether all member variables have been correctly initialized or not.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
Definition at line 460 of file iLinearModel.cc.
int iLinearModel::CheckSpecificParametersForAllLinearModels | ( | ) |
This function is used to check parameters for all Linear Models.
.
Definition at line 487 of file iLinearModel.cc.
|
virtual |
Re-estimate image using the linear parametric images and basis functions.
ap_ImageS | : pointer to the ImageSpace |
a_ite | : index of the actual iteration (not used) |
a_sset | : index of the actual subset (not used) |
Implements vDynamicModel.
Definition at line 1913 of file iLinearModel.cc.
|
virtual |
Estimate model parameters (parametric images and basis functions)
ap_ImageS | : pointer to the ImageSpace |
a_ite | : index of the actual iteration (not used) |
a_sset | : index of the actual subset (not used) |
Implements vDynamicModel.
Definition at line 1022 of file iLinearModel.cc.
int iLinearModel::EstimateParametersWithNNLS | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
Estimate parametric images using the NNLS method.
ap_ImageS | : pointer to the ImageSpace |
a_ite | : index of the actual iteration (not used) |
Definition at line 1601 of file iLinearModel.cc.
|
virtual |
This function is used to initialize the parametric images and basis functions for all Linear Models.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
Definition at line 983 of file iLinearModel.cc.
int iLinearModel::InitializeSpecificToAllLinearModels | ( | ) |
This function is used to initialize the parametric images and basis functions for all Linear Models.
Definition at line 552 of file iLinearModel.cc.
int iLinearModel::NestedEM | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
Estimate parametric images and basis functions (if enabled) using the nested EM method.
ap_ImageS | : pointer to the ImageSpace |
a_ite | : index of the actual iteration (not used) |
Definition at line 1104 of file iLinearModel.cc.
int iLinearModel::Patlak_LS | ( | oImageSpace * | ap_ImageS, |
int | a_ite | ||
) |
Estimate parametric images using linear regression.
ap_ImageS | : pointer to the ImageSpace |
a_ite | : index of the actual iteration (not used) |
Definition at line 1840 of file iLinearModel.cc.
|
virtual |
This function is used to read options from a configuration file.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
Definition at line 252 of file iLinearModel.cc.
int iLinearModel::ReadAndCheckConfigurationFileSpecificToAllLinearModels | ( | ) |
This function is used to read parameters that are generic for all Linear Models.
.
Definition at line 276 of file iLinearModel.cc.
|
virtual |
This function is used to read parameters from a string.
const | string& a_optionsList : a list of parameters separated by commas |
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
Definition at line 431 of file iLinearModel.cc.
void iLinearModel::ShowBasisFunctions | ( | ) |
This function is used to print the basis functions.
Definition at line 951 of file iLinearModel.cc.
|
virtual |
Print out specific help about the implementation of this model and its initialization.
Implements vDynamicModel.
Reimplemented in iLinearModelTemplate, iLinearPatlakModel, and iLinearSpectralModel.
Definition at line 139 of file iLinearModel.cc.
|
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 205 of file 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 201 of file iLinearModel.hh.
|
protected |
Index to compute the ratio for the parametric images/basis functions updates cycle
Definition at line 217 of file 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 215 of file 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 213 of file iLinearModel.hh.
|
protected |
Number of time basis functions applied to cardiac gates in the model
Definition at line 197 of file 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 212 of file iLinearModel.hh.
|
protected |
Number of time basis functions applied to respiratory gates in the model
Definition at line 196 of file iLinearModel.hh.
|
protected |
Number indicating the method to estimate parameters, from the available options.
Definition at line 195 of file iLinearModel.hh.
|
protected |
Image matrix containing correction factors for the parametric images updates
Definition at line 210 of file iLinearModel.hh.
|
protected |
Vector containing correction factors for the temporal basis functions updates
Definition at line 211 of file iLinearModel.hh.