![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This class implements a 1 compartiment model, to model kinetics of radiotracers such as radiowater. More...
#include <i1TCModel.hh>
Public Member Functions | |
i1TCModel () | |
Constructor of i1TCModel. Simply set all data members to default values. More... | |
~i1TCModel () | |
Destructor of i1TCModel. More... | |
int | CheckSpecificParameters () |
This function is used to check whether all member variables have been correctly initialized or not. More... | |
int | ReadAndCheckConfigurationFileSpecific () |
This function is used to read options from a configuration file. More... | |
int | ReadAndCheckOptionsList (string a_listOptions) |
int | InitializeSpecific () |
This function is used to initialize parametric images and 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) |
i1TCModel () | |
~i1TCModel () | |
int | CheckSpecificParameters () |
This function is used to check the parameters of the child functions before initialization if required. More... | |
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 | InitializeSpecific () |
A private function used to initialize everything specific to the child model. 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) |
![]() | |
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) |
Private Member Functions | |
int | EstimateModelParametersWithLS (oImageSpace *ap_ImageS) |
int | EstimateModelParametersWithNNLS (oImageSpace *ap_ImageS) |
int | EstimateModelParametersWithBF (oImageSpace *ap_ImageS) |
int | RRLS (uint16_t a_nP, uint16_t a_nT, FLTNB **a2p_model, FLTNB *ap_data, FLTNB *ap_w, FLTNB *ap_result) |
int | LS (uint16_t a_nP, uint16_t a_nT, FLTNB **a2p_model, FLTNB *ap_data, FLTNB *ap_w, FLTNB *ap_result) |
FLTNB | WPOinc (uint32_t a_time, FLTNB tac, FLTNB b_tac, FLTNB bb_tac, FLTNB n_tac) |
int | IntegrateTAC (FLTNB *ap_tac, FLTNB *ap_citac, int a_th) |
int | WPO (FLTNB *ap_tac, FLTNB *ap_citac, int a_th) |
int | Trapz (FLTNB *ap_tac, FLTNB *ap_citac) |
int | EstimateModelParametersWithLS (oImageSpace *ap_ImageS) |
int | EstimateModelParametersWithNNLS (oImageSpace *ap_ImageS) |
int | EstimateModelParametersWithBF (oImageSpace *ap_ImageS) |
int | RRLS (uint16_t a_nP, uint16_t a_nT, FLTNB **a2p_model, FLTNB *ap_data, FLTNB *ap_w, FLTNB *ap_result) |
int | LS (uint16_t a_nP, uint16_t a_nT, FLTNB **a2p_model, FLTNB *ap_data, FLTNB *ap_w, FLTNB *ap_result) |
FLTNB | WPOinc (uint32_t a_time, FLTNB tac, FLTNB b_tac, FLTNB bb_tac, FLTNB n_tac) |
int | IntegrateTAC (FLTNB *ap_tac, FLTNB *ap_citac, int a_th) |
int | WPO (FLTNB *ap_tac, FLTNB *ap_citac, int a_th) |
int | Trapz (FLTNB *ap_tac, FLTNB *ap_citac) |
This class implements a 1 compartiment model, to model kinetics of radiotracers such as radiowater.
Definition at line 51 of file code/include/dynamic/i1TCModel.hh.
i1TCModel::i1TCModel | ( | ) |
Constructor of i1TCModel. Simply set all data members to default values.
Definition at line 29 of file code/src/dynamic/i1TCModel.cc.
i1TCModel::~i1TCModel | ( | ) |
Destructor of i1TCModel.
Definition at line 88 of file code/src/dynamic/i1TCModel.cc.
i1TCModel::i1TCModel | ( | ) |
i1TCModel::~i1TCModel | ( | ) |
|
virtual |
This function is used to check whether all member variables have been correctly initialized or not.
Implements vDynamicModel.
Definition at line 421 of file code/src/dynamic/i1TCModel.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.
|
virtual |
Implements vDynamicModel.
|
virtual |
Implements vDynamicModel.
Definition at line 1703 of file code/src/dynamic/i1TCModel.cc.
|
virtual |
Implements vDynamicModel.
|
virtual |
Implements vDynamicModel.
Definition at line 864 of file code/src/dynamic/i1TCModel.cc.
|
private |
Definition at line 1147 of file code/src/dynamic/i1TCModel.cc.
|
private |
|
private |
Definition at line 1182 of file code/src/dynamic/i1TCModel.cc.
|
private |
|
private |
Definition at line 968 of file code/src/dynamic/i1TCModel.cc.
|
private |
|
virtual |
This function is used to initialize parametric images and basis functions.
Implements vDynamicModel.
Definition at line 484 of file code/src/dynamic/i1TCModel.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.
Definition at line 1864 of file code/src/dynamic/i1TCModel.cc.
|
private |
Definition at line 1544 of file code/src/dynamic/i1TCModel.cc.
|
private |
|
virtual |
This function is used to read options from a configuration file.
Implements vDynamicModel.
Definition at line 282 of file code/src/dynamic/i1TCModel.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.
|
virtual |
Implements vDynamicModel.
|
virtual |
Implements vDynamicModel.
Definition at line 396 of file code/src/dynamic/i1TCModel.cc.
|
private |
Definition at line 1342 of file code/src/dynamic/i1TCModel.cc.
|
private |
|
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.
|
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.
Definition at line 179 of file code/src/dynamic/i1TCModel.cc.
Definition at line 1956 of file code/src/dynamic/i1TCModel.cc.
Definition at line 1886 of file code/src/dynamic/i1TCModel.cc.
|
private |
Definition at line 1812 of file code/src/dynamic/i1TCModel.cc.
|
private |
|
protected |
Vector containing voxel TACs (multithreaded)
Definition at line 265 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Vector containing the integral of voxel TACs (multithreaded)
Definition at line 266 of file code/include/dynamic/i1TCModel.hh.
|
protected |
1D vector for NNLS estimation, containing the solution (multithreaded)
Definition at line 269 of file code/include/dynamic/i1TCModel.hh.
|
protected |
1D working vector for NNLS estimation (multithreaded)
Definition at line 270 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Definition at line 284 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Definition at line 283 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Definition at line 282 of file code/include/dynamic/i1TCModel.hh.
|
protected |
2D coefficient matrix for NNLS estimation (multithreaded)
Definition at line 268 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Flag indicating the method for TACs integral computation (default=true)
Definition at line 285 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Number of parameters in NNLS/LS estimation
Definition at line 271 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Flag containing the optimization method
Definition at line 263 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Flag indicating if ridge regression is enabled (default=false)
Definition at line 276 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Regularization parameter for ridge regression
Definition at line 275 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Flag indicating if parametric images should be written on disk (default=true)
Definition at line 262 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Vector containing the half frame time duration (for integral computation)
Definition at line 278 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Matrix for computation (th)
Definition at line 293 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Matrix for computation (th)
Definition at line 292 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Vector containing parameters lower bound
Definition at line 274 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Vector containing parameters upper bound
Definition at line 273 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Ridge means
Definition at line 297 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Ridge numerator for computation (th)
Definition at line 299 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Ridge weights
Definition at line 298 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Estimated parameters Matrix (th)
Definition at line 294 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Optional input image containing the blood volume
Definition at line 301 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Vector containing the weights for NNLS estimation
Definition at line 267 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Definition at line 281 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Definition at line 280 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Model Matrix (threaded)
Definition at line 289 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Matrix for computation (th)
Definition at line 290 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Matrix for computation (th)
Definition at line 291 of file code/include/dynamic/i1TCModel.hh.
|
protected |
Data Matrix (threaded)
Definition at line 288 of file code/include/dynamic/i1TCModel.hh.