![]() |
CASToR
3.0
Tomographic Reconstruction (PET/SPECT/CT)
|
This class is designed to manage all dimensions and quantification related stuff. More...
#include <oImageDimensionsAndQuantification.hh>
Public Member Functions | |
oImageDimensionsAndQuantification () | |
The constructor of oImageDimensionsAndQuantification. More... | |
~oImageDimensionsAndQuantification () | |
The destructor of oImageDimensionsAndQuantification. More... | |
void | SetDefault () |
A function used to set number of threads and MPI instances to 1 and bypass the CheckParameters() function. More... | |
int | CheckParameters () |
A function used to check the parameters settings. More... | |
int | Initialize () |
A function used to initialize all that is needed. More... | |
void | CheckNumberOfProjectionThreadsConsistencyWithDataFileSize (vDataFile **a2p_DataFile) |
int | DealWithBedPositions (vDataFile **a2p_DataFile) |
Deal with provided or default bed relative positions. More... | |
void | ResetCurrentDynamicIndices () |
Call the eponym function from the oDynamicDataManager class using the member object. More... | |
int | InitDynamicData (string a_pathTo4DDataSplittingFile, int a_respMotionCorrectionFlag, int a_cardMotionCorrectionFlag, int a_invMotionCorrectionFlag, int a_nbRespGates, int a_nbCardGates) |
Call the eponym function from the oDynamicDataManager object in order to initialize its data. More... | |
int | CheckDynamicParameters (int64_t a_nbEvents) |
Call the eponym function from the oDynamicDataManager object in order to check its parameters. More... | |
int | DynamicSwitch (int64_t a_currentEventIndex, uint32_t a_currentTime, int a_bed, int a_th) |
Call the eponym function from the oDynamicDataManager class using the member object. More... | |
bool | IsRespMotionEnabled () |
bool | IsCardMotionEnabled () |
bool | IsPMotionEnabled () |
void | SetRespMotionFlagOn () |
Call the eponym function from the oDynamicDataManager class using the member object. More... | |
void | SetCardMotionFlagOn () |
Call the eponym function from the oDynamicDataManager class using the member object. More... | |
void | SetPMotionFlagOn () |
Call the eponym function from the oDynamicDataManager class using the member object. More... | |
int | GetCurrentRespGate (int a_th) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetCurrentCardGate (int a_th) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetPMotionFirstIndexForFrame (int a_fr) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetPMotionLastIndexForFrame (int a_fr) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetNb1stMotImgsForLMS (int a_fr) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetNb2ndMotImgsForLMS () |
call the eponym function from the oDynamicDataManager object More... | |
FLTNB | GetListPMotionWeightInFrameForLMS (int a_fr, int a_pmsset) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetCurrentRespImage (int a_th) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetCurrentCardImage (int a_th) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetCurrentTimeFrame (int a_th) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetCurrentPMotionIndex (int a_th) |
call the eponym function from the oDynamicDataManager object More... | |
int | GetNbIPatMotionSubsets () |
call the eponym function from the oDynamicDataManager object More... | |
int | GetDynRecoType () |
void | SetVerbose (int a_verbose) |
Set the member m_verboseLevel to the provided value. More... | |
int | GetNbThreadsForProjection () |
Get the number of threads used for projections. More... | |
int | GetNbThreadsForImageComputation () |
Get the number of threads used for image operations. More... | |
int | GetNbThreadsMax () |
Get the maximum between the number of threads used for projections and image operations. More... | |
int | SetNbThreads (const string &a_nbThreads) |
Set the number of threads. More... | |
void | SetMPIRankAndSize (int a_mpiRank, int a_mpiSize) |
Set the MPI rank of the MPI instance, and the MPI size (the number of instances) More... | |
int | GetMPISize () |
Get the MPI size (the number of MPI instances) More... | |
int | GetMPIRank () |
Get the MPI instance number (the rank) More... | |
int | GetNbBeds () |
Get the number of bed positions. More... | |
void | SetNbBeds (int a_nbBeds) |
Set the number of bed positions and allocate the bed positions if not already done. More... | |
FLTNB | GetBedPosition (int a_bedIndex) |
Get the bed position associated to a bed index. More... | |
bool | GetProvidedBedPositionFlag () |
Say if the bed relative position was provided from the datafile or not. More... | |
int | GetNbTimeFrames () |
Get the number of time frames. More... | |
int | GetNbTimeBasisFunctions () |
Get the number of time basis functions. More... | |
FLTNB | GetTimeBasisCoefficient (int a_timeBasisFunction, int a_timeFrame) |
Get the time basis coefficients for the provided frame and basis function. More... | |
FLTNB | GetFrameDurationInSec (int a_bed, int a_frame) |
Get the frame duration for the given bed, in seconds as a FLTNB. More... | |
FLTNB | GetFrameTimeStartInSec (int a_bed, int a_frame) |
Get the frame time start for the given bed, in seconds as a FLTNB. More... | |
FLTNB | GetFrameTimeStopInSec (int a_bed, int a_frame) |
Get the frame time stop for the given bed, in seconds as a FLTNB. More... | |
FLTNB | GetFinalTimeStopInSec (int a_bed) |
Get the last frame time stop for the given bed, in seconds as a FLTNB. More... | |
uint32_t | GetFrameDurationInMs (int a_bed, int a_frame) |
Get the frame duration for the given bed, in milliseconds as a uint32_t. More... | |
uint32_t | GetFrameTimeStartInMs (int a_bed, int a_frame) |
Get the frame time start for the given bed, in milliseconds as a uint32_t. More... | |
uint32_t | GetFrameTimeStopInMs (int a_bed, int a_frame) |
Get the frame time stop for the given bed, in milliseconds as a uint32_t. More... | |
uint32_t | GetFinalTimeStopInMs (int a_bed) |
Get the last frame time stop for the given bed, in milliseconds as a uint32_t. More... | |
uint32_t * | GetFramesTimeStartsArray (int a_bed) |
Get the array of frame start times for a bed in Ms at uint32_t. More... | |
uint32_t * | GetFramesTimeStopArray (int a_bed) |
uint32_t * | GetFramesTimeDurationsArray (int a_bed) |
Get the array of frame duration times for a bed in Ms at uint32_t. More... | |
void | SetFrames (const string &a_frameList) |
Set the frame list (a string that will be parsed by the InitializeFramingAndQuantification function) More... | |
void | SetNbTimeBasisFunctions (int a_nbTimeBasisFunctions) |
Set the number of time basis functions. More... | |
void | SetTimeBasisFunctions (FLTNB **a_m2pTimeBasisFunctions) |
Set the basis functions array, calculated by the DynamicModelManager or the DynamicModel. More... | |
void | SetRespBasisFunctions (FLTNB **a_m2pRespBasisFunctions) |
Set the basis functions array, calculated by the DynamicModelManager or the DynamicModel. More... | |
void | SetCardBasisFunctions (FLTNB **a_m2pCardBasisFunctions) |
int | SetAcquisitionTime (int a_bed, FLTNB a_timeStartInSec, FLTNB a_durationInSec, string a_GateListDurationsInSec) |
Set the acquisition time if not already set by the SetTimeFrames() More... | |
bool | GetTimeStaticFlag () |
Get the time static flag that says if the reconstruction has only one frame or not. More... | |
int | GetNbRespGates () |
Get the number of respiratory gates. More... | |
int | GetNbRespBasisFunctions () |
Get the number of respiratory basis functions. More... | |
FLTNB | GetRespBasisCoefficient (int a_respBasisFunction, int a_respGate) |
Get the respiratory basis coefficients for the provided respiratory gate and basis function. More... | |
void | SetNbRespGates (int a_nbRespGates) |
Set the number of respiratory gates. More... | |
void | SetNbRespBasisFunctions (int a_nbRespBasisFunctions) |
Set the number of respiratory basis functions. More... | |
void | SetRespBasisFunctionsFile (const string &a_respBasisFunctionsFile) |
Set the file name containing the respiratory basis functions coefficients. More... | |
bool | GetRespStaticFlag () |
Get the respiratory static flag that says if the reconstruction has only one respiratory gate or not. More... | |
int | GetNbCardGates () |
Get the number of cardiac gates. More... | |
int | GetNbCardBasisFunctions () |
Get the number of cardiac basis functions. More... | |
FLTNB | GetCardBasisCoefficient (int a_cardBasisFunction, int a_cardGate) |
Get the cardiac basis coefficients for the provided cardiac gate and basis function. More... | |
void | SetNbCardGates (int a_nbCardGates) |
Set the number of cardiac gates. More... | |
void | SetNbCardBasisFunctions (int a_nbCardBasisFunctions) |
Set the number of cardiac basis functions. More... | |
void | SetCardBasisFunctionsFile (const string &a_cardBasisFunctionsFile) |
Set the cardiac basis functions coefficients. More... | |
bool | GetCardStaticFlag () |
Get the cardiac static flag that says if the reconstruction has only one cardiac gate or not. More... | |
INTNB | GetNbVoxX () |
Get the number of voxels along the X axis. More... | |
INTNB | GetNbVoxY () |
Get the number of voxels along the Y axis. More... | |
INTNB | GetNbVoxZ () |
Get the number of voxels along the Z axis. More... | |
INTNB | GetNbVoxXY () |
Get the number of voxels in a slice. More... | |
INTNB | GetNbVoxXYZ () |
Get the total number of voxels. More... | |
INTNB | GetNbVoxDiagonal () |
Get an estimation of the number of voxels along the image diagonal. More... | |
void | SetNbVoxX (INTNB a_nbVoxX) |
Set the number of voxels along the X axis. More... | |
void | SetNbVoxY (INTNB a_nbVoxY) |
Set the number of voxels along the Y axis. More... | |
void | SetNbVoxZ (INTNB a_nbVoxZ) |
Set the number of voxels along the Z axis. More... | |
FLTNB | GetVoxSizeX () |
Get the voxel's size along the X axis, in mm. More... | |
FLTNB | GetVoxSizeY () |
Get the voxel's size along the Y axis, in mm. More... | |
FLTNB | GetVoxSizeZ () |
Get the voxel's size along the Z axis, in mm. More... | |
FLTNB | GetFOVSizeX () |
Get the size of the field-of-view along the X axis, in mm. More... | |
FLTNB | GetFOVSizeY () |
Get the size of the field-of-view along the Y axis, in mm. More... | |
FLTNB | GetFOVSizeZ () |
Get the size of the field-of-view along the Z axis, in mm. More... | |
void | SetVoxSizeX (FLTNB a_voxSizeX) |
Set the voxel's size along the X axis, in mm. More... | |
void | SetVoxSizeY (FLTNB a_voxSizeY) |
Set the voxel's size along the Y axis, in mm. More... | |
void | SetVoxSizeZ (FLTNB a_voxSizeZ) |
Set the voxel's size along the Z axis, in mm. More... | |
void | SetFOVSizeX (FLTNB a_fovSizeX) |
Set the FOV's size along the X axis, in mm. More... | |
void | SetFOVSizeY (FLTNB a_fovSizeY) |
Set the FOV's size along the Y axis, in mm. More... | |
void | SetFOVSizeZ (FLTNB a_fovSizeZ) |
Set the FOV's size along the Z axis, in mm. More... | |
void | SetFOVOutMasking (FLTNB a_fovOutPercent, INTNB a_nbSliceOutMask) |
Set the output FOV masking settings: transaxial unmasked FOV percent and number of extrem slices to removed. More... | |
FLTNB | GetFOVOutPercent () |
Get the percentage of transaxial unmasked FOV. More... | |
INTNB | GetNbSliceOutMask () |
Get the number of extrem slices that will be masked at each side. More... | |
int | SetFlipOut (const string &a_flipOut) |
Set the output flip options, the parameter being a string potentially containing the letters x, y and z. More... | |
bool | GetFlipOutX () |
Get the boolean saying if the output image must be flipped along the X axis. More... | |
bool | GetFlipOutY () |
Get the boolean saying if the output image must be flipped along the Y axis. More... | |
bool | GetFlipOutZ () |
Get the boolean saying if the output image must be flipped along the Z axis. More... | |
FLTNB | GetOffsetX () |
Get the image offset along the X axis, in mm. More... | |
FLTNB | GetOffsetY () |
Get the image offset along the Y axis, in mm. More... | |
FLTNB | GetOffsetZ () |
Get the image offset along the Z axis, in mm. More... | |
void | SetOffsetX (FLTNB a_offsetX) |
Set the image offset along the X axis, in mm. More... | |
void | SetOffsetY (FLTNB a_offsetY) |
Set the image offset along the Y axis, in mm. More... | |
void | SetOffsetZ (FLTNB a_offsetZ) |
Set the image offset along the Z axis, in mm. More... | |
FLTNB | GetQuantificationFactor (int a_bed, int a_frame, int a_respGate, int a_cardGate) |
Get the quantification factor corresponding to the provided bed, frame, respiratory and cardiac gates. More... | |
long double | GetLambda () |
int | SetCalibrationFactor (int a_bed, FLTNB a_calibrationFactor) |
Set the calibration factor for the provided bed. More... | |
int | SetPETIsotope (int a_bed, const string &a_isotope) |
Set the PET isotope for the provided bed. More... | |
int | SetSPECTIsotope (int a_bed, const string &a_isotope) |
Set the SPECT isotope for the provided bed. More... | |
int | SetDynamicSpecificQuantificationFactors (const string &a_quantificationFile) |
Apply specific quantification factors manually provided as an option. More... | |
void | SetIgnoredCorrections (const string &a_ignoredCorrectionsList) |
Set the string specifying the corrections that will be ignored. More... | |
bool | GetIgnoreAttnCorrectionFlag () |
Get the boolean that says if the attenuation correction is ignored or not. More... | |
bool | GetIgnoreNormCorrectionFlag () |
Get the boolean that says if the normalization correction is ignored or not. More... | |
bool | GetIgnoreScatCorrectionFlag () |
Get the boolean that says if the scatter correction is ignored or not. More... | |
bool | GetIgnoreRandCorrectionFlag () |
Get the boolean that says if the random correction is ignored or not. More... | |
bool | GetIgnoreDecaCorrectionFlag () |
Get the boolean that says if the decay correction is ignored or not. More... | |
bool | GetIgnoreBratCorrectionFlag () |
Get the boolean that says if the branching ratio correction is ignored or not. More... | |
bool | GetIgnoreFdurCorrectionFlag () |
Get the boolean that says if the frame duration correction is ignored or not. More... | |
bool | GetIgnoreCaliCorrectionFlag () |
Get the boolean that says if the calibration correction is ignored or not. More... | |
int | GetNbMultiModalImages () |
Get the number of additional multimodal images. More... | |
int | GetNbFramesToSkip () |
void | SetNbMultiModalImages (int a_nbMultiModalImages) |
Set the number of additional multimodal images. More... | |
void | SetTimeStaticFlag (bool a_flag) |
Set the Time Static Flag - to be used with Time Basis functions for direct dynamic reconstruction. More... | |
void | SetRespStaticFlag (bool a_flag) |
Set the Respiratory Static Flag. More... | |
void | SetCardStaticFlag (bool a_flag) |
Set the Cardiac Static Flag. More... | |
void | SetnbFramesToSkip (int a_FramesToSkip) |
Set the number of frames to skip when used with ImageBasedDynamicModel. More... | |
bool | IsInitialized () |
Returns true if the object has been initialized. More... | |
Private Member Functions | |
int | InitializeFramingAndQuantification () |
A function used to initialize the framing and quantification tables. More... | |
int | InitializeIgnoredCorrections () |
A function used to initialize the ignored corrections. More... | |
This class is designed to manage all dimensions and quantification related stuff.
This class gather all dimensions information as well as quantification. It also manages the oDynamicDataManager which itself manages the dynamic data. Most classes in the project have a pointer to this class.
Definition at line 69 of file oImageDimensionsAndQuantification.hh.
oImageDimensionsAndQuantification::oImageDimensionsAndQuantification | ( | ) |
The constructor of oImageDimensionsAndQuantification.
This is the default and unique constructor. It does not take any parameter and its role is only to affect default values to each member of the class.
Definition at line 38 of file oImageDimensionsAndQuantification.cc.
oImageDimensionsAndQuantification::~oImageDimensionsAndQuantification | ( | ) |
The destructor of oImageDimensionsAndQuantification.
This is the default and unique destructor. It does not take any parameter and its role is only to free or delete all structures that were build by this class.
Definition at line 110 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::CheckDynamicParameters | ( | int64_t | a_nbEvents | ) |
Call the eponym function from the oDynamicDataManager object in order to check its parameters.
int64_t | a_nbEvents |
Definition at line 1495 of file oImageDimensionsAndQuantification.cc.
void oImageDimensionsAndQuantification::CheckNumberOfProjectionThreadsConsistencyWithDataFileSize | ( | vDataFile ** | a2p_DataFile | ) |
vDataFile** | a2p_DataFile |
Reduce the number of projection threads to the lowest number of events in all datafiles, if the latter is below the former.
Definition at line 462 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::CheckParameters | ( | ) |
A function used to check the parameters settings.
This function does not take any parameter and is used to check that all mandatory members were correctly parameterized.
Definition at line 300 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::DealWithBedPositions | ( | vDataFile ** | a2p_DataFile | ) |
Deal with provided or default bed relative positions.
vDataFile** | a2p_DataFile |
If relative bed positions are provided from datafiles, then reposition them with respect to the CASToR referential. Otherwise, take the default bed displacement from the scanner and compute the bed relative positions. Finally, the bed positions used in the reconstruction are stored in the mp_bedPositions member.
Definition at line 483 of file oImageDimensionsAndQuantification.cc.
|
inline |
Call the eponym function from the oDynamicDataManager class using the member object.
a_currentEventIndex | |
a_currentTime | |
a_bed | |
a_th |
Definition at line 224 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the bed position associated to a bed index.
int | a_bedIndex |
Definition at line 464 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the cardiac basis coefficients for the provided cardiac gate and basis function.
int | a_cardBasisFunction |
int | a_cardGate |
Definition at line 715 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the cardiac static flag that says if the reconstruction has only one cardiac gate or not.
Definition at line 743 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_th |
Definition at line 285 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_th |
Definition at line 346 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_th |
Definition at line 362 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_th |
Definition at line 277 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_th |
Definition at line 338 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_th |
Definition at line 354 of file oImageDimensionsAndQuantification.hh.
|
inline |
Definition at line 377 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the last frame time stop for the given bed, in milliseconds as a uint32_t.
int | a_bed |
Definition at line 563 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the last frame time stop for the given bed, in seconds as a FLTNB.
int | a_bed |
Definition at line 528 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean saying if the output image must be flipped along the X axis.
Definition at line 928 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean saying if the output image must be flipped along the Y axis.
Definition at line 935 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean saying if the output image must be flipped along the Z axis.
Definition at line 942 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the percentage of transaxial unmasked FOV.
Definition at line 907 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the size of the field-of-view along the X axis, in mm.
Definition at line 836 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the size of the field-of-view along the Y axis, in mm.
Definition at line 843 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the size of the field-of-view along the Z axis, in mm.
Definition at line 850 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the frame duration for the given bed, in milliseconds as a uint32_t.
int | a_bed |
int | a_frame |
Definition at line 537 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the frame duration for the given bed, in seconds as a FLTNB.
int | a_bed |
int | a_frame |
Definition at line 502 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the array of frame duration times for a bed in Ms at uint32_t.
int | a_bed |
Definition at line 587 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the array of frame start times for a bed in Ms at uint32_t.
int | a_bed |
Definition at line 571 of file oImageDimensionsAndQuantification.hh.
|
inline |
Definition at line 579 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the frame time start for the given bed, in milliseconds as a uint32_t.
int | a_bed |
int | a_frame |
Definition at line 546 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the frame time start for the given bed, in seconds as a FLTNB.
int | a_bed |
int | a_frame |
Definition at line 511 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the frame time stop for the given bed, in milliseconds as a uint32_t.
int | a_bed |
int | a_frame |
Definition at line 555 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the frame time stop for the given bed, in seconds as a FLTNB.
int | a_bed |
int | a_frame |
Definition at line 520 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the attenuation correction is ignored or not.
Definition at line 1047 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the branching ratio correction is ignored or not.
Definition at line 1082 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the calibration correction is ignored or not.
Definition at line 1096 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the decay correction is ignored or not.
Definition at line 1075 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the frame duration correction is ignored or not.
Definition at line 1089 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the normalization correction is ignored or not.
Definition at line 1054 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the random correction is ignored or not.
Definition at line 1068 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the boolean that says if the scatter correction is ignored or not.
Definition at line 1061 of file oImageDimensionsAndQuantification.hh.
|
inline |
Definition at line 999 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
Definition at line 327 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the MPI instance number (the rank)
Definition at line 442 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the MPI size (the number of MPI instances)
Definition at line 435 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_fr | = frame index |
Definition at line 311 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
Definition at line 318 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of bed positions.
Definition at line 449 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of cardiac basis functions.
Definition at line 706 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of cardiac gates.
Definition at line 699 of file oImageDimensionsAndQuantification.hh.
|
inline |
Definition at line 1110 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
Definition at line 370 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of additional multimodal images.
Definition at line 1103 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of respiratory basis functions.
Definition at line 655 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of respiratory gates.
Definition at line 648 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of extrem slices that will be masked at each side.
Definition at line 914 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of threads used for image operations.
Definition at line 403 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of threads used for projections.
Definition at line 396 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the maximum between the number of threads used for projections and image operations.
Definition at line 410 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of time basis functions.
Definition at line 484 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of time frames.
Definition at line 477 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get an estimation of the number of voxels along the image diagonal.
Definition at line 785 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of voxels along the X axis.
Definition at line 750 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of voxels in a slice.
Definition at line 771 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the total number of voxels.
Definition at line 778 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of voxels along the Y axis.
Definition at line 757 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the number of voxels along the Z axis.
Definition at line 764 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the image offset along the X axis, in mm.
Definition at line 949 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the image offset along the Y axis, in mm.
Definition at line 956 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the image offset along the Z axis, in mm.
Definition at line 963 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_fr | = frame index |
Definition at line 293 of file oImageDimensionsAndQuantification.hh.
|
inline |
call the eponym function from the oDynamicDataManager object
a_fr | = frame index |
Definition at line 302 of file oImageDimensionsAndQuantification.hh.
|
inline |
Say if the bed relative position was provided from the datafile or not.
Definition at line 471 of file oImageDimensionsAndQuantification.hh.
FLTNB oImageDimensionsAndQuantification::GetQuantificationFactor | ( | int | a_bed, |
int | a_frame, | ||
int | a_respGate, | ||
int | a_cardGate | ||
) |
Get the quantification factor corresponding to the provided bed, frame, respiratory and cardiac gates.
int | a_bed |
int | a_frame |
int | a_respGate |
int | a_cardGate |
Definition at line 1241 of file oImageDimensionsAndQuantification.cc.
|
inline |
Get the respiratory basis coefficients for the provided respiratory gate and basis function.
int | a_respBasisFunction |
int | a_respGate |
Definition at line 664 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the respiratory static flag that says if the reconstruction has only one respiratory gate or not.
Definition at line 692 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the time basis coefficients for the provided frame and basis function.
int | a_timeBasisFunction |
int | a_timeFrame |
Definition at line 493 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the time static flag that says if the reconstruction has only one frame or not.
Definition at line 641 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the voxel's size along the X axis, in mm.
Definition at line 815 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the voxel's size along the Y axis, in mm.
Definition at line 822 of file oImageDimensionsAndQuantification.hh.
|
inline |
Get the voxel's size along the Z axis, in mm.
Definition at line 829 of file oImageDimensionsAndQuantification.hh.
int oImageDimensionsAndQuantification::InitDynamicData | ( | string | a_pathTo4DDataSplittingFile, |
int | a_respMotionCorrectionFlag, | ||
int | a_cardMotionCorrectionFlag, | ||
int | a_invMotionCorrectionFlag, | ||
int | a_nbRespGates, | ||
int | a_nbCardGates | ||
) |
Call the eponym function from the oDynamicDataManager object in order to initialize its data.
a_pathTo4DDataSplittingFile | |
a_respMotionCorrectionFlag | |
a_cardMotionCorrectionFlag | |
a_invMotionCorrectionFlag | |
a_nbRespGates | |
a_nbCardGates | # |
Definition at line 1460 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::Initialize | ( | ) |
A function used to initialize all that is needed.
This function does not take any parameter and is used to initialize everything that should be initialized. It initializes image dimensions, dynamic basis functions and quantification factors.
Definition at line 356 of file oImageDimensionsAndQuantification.cc.
|
private |
A function used to initialize the framing and quantification tables.
This function is called by the Initialize() function.
Definition at line 558 of file oImageDimensionsAndQuantification.cc.
|
private |
A function used to initialize the ignored corrections.
This function is called by the Initialize() function. It parses the ignored correction string (correction keywords separated by commas) and set the associated boolean members
Definition at line 912 of file oImageDimensionsAndQuantification.cc.
|
inline |
Definition at line 240 of file oImageDimensionsAndQuantification.hh.
|
inline |
Returns true if the object has been initialized.
Definition at line 1151 of file oImageDimensionsAndQuantification.hh.
|
inline |
Definition at line 247 of file oImageDimensionsAndQuantification.hh.
|
inline |
Definition at line 233 of file oImageDimensionsAndQuantification.hh.
|
inline |
Call the eponym function from the oDynamicDataManager class using the member object.
Definition at line 191 of file oImageDimensionsAndQuantification.hh.
int oImageDimensionsAndQuantification::SetAcquisitionTime | ( | int | a_bed, |
FLTNB | a_timeStartInSec, | ||
FLTNB | a_durationInSec, | ||
string | a_GateListDurationsInSec | ||
) |
Set the acquisition time if not already set by the SetTimeFrames()
int | a_bed |
FLTNB | a_timeStartInSec |
FLTNB | a_durationInSec |
string | a_GateListDurationsInSec |
This function is called from the vDataFile once the acquisition start and duration are read in the header
Definition at line 969 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::SetCalibrationFactor | ( | int | a_bed, |
FLTNB | a_calibrationFactor | ||
) |
Set the calibration factor for the provided bed.
int | a_bed |
FLTNB | a_calibrationFactor |
Apply it to all frames and gates
Definition at line 1091 of file oImageDimensionsAndQuantification.cc.
|
inline |
Definition at line 623 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the cardiac basis functions coefficients.
Set the file name containing the cardiac basis functions coefficients.
const | string& a_CardBasisFunctionsFile |
const | string& a_cardBasisFunctionsFile |
Definition at line 736 of file oImageDimensionsAndQuantification.hh.
|
inline |
Call the eponym function from the oDynamicDataManager class using the member object.
Definition at line 263 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the Cardiac Static Flag.
bool |
Definition at line 1138 of file oImageDimensionsAndQuantification.hh.
void oImageDimensionsAndQuantification::SetDefault | ( | ) |
A function used to set number of threads and MPI instances to 1 and bypass the CheckParameters() function.
The m_checked flag is set to true
Definition at line 282 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::SetDynamicSpecificQuantificationFactors | ( | const string & | a_quantificationFile | ) |
Apply specific quantification factors manually provided as an option.
const | string& a_quantificationFile |
It does not set the quantification factors, it applies them (it is an update, not an affectation)
Definition at line 1132 of file oImageDimensionsAndQuantification.cc.
int oImageDimensionsAndQuantification::SetFlipOut | ( | const string & | a_flipOut | ) |
Set the output flip options, the parameter being a string potentially containing the letters x, y and z.
const | string& a_flipOut |
Definition at line 155 of file oImageDimensionsAndQuantification.cc.
|
inline |
Set the output FOV masking settings: transaxial unmasked FOV percent and number of extrem slices to removed.
FLTNB | a_fovOutPercent |
INTNB | a_nbSliceOutMask |
Definition at line 900 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the FOV's size along the X axis, in mm.
FLTNB | a_fovSizeX |
Definition at line 878 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the FOV's size along the Y axis, in mm.
FLTNB | a_fovSizeY |
Definition at line 885 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the FOV's size along the Z axis, in mm.
FLTNB | a_fovSizeZ |
Definition at line 892 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the frame list (a string that will be parsed by the InitializeFramingAndQuantification function)
const | string& a_frameList |
Definition at line 594 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the string specifying the corrections that will be ignored.
const | string& a_ignoredCorrectionsList |
Definition at line 1040 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the MPI rank of the MPI instance, and the MPI size (the number of instances)
int | a_mpiRank |
int | a_mpiSize |
Definition at line 428 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of bed positions and allocate the bed positions if not already done.
int | a_nbBeds |
Definition at line 456 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of cardiac basis functions.
int | a_nbCardBasisFunctions |
Definition at line 729 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of cardiac gates.
int | a_nbCardGates |
Definition at line 722 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of frames to skip when used with ImageBasedDynamicModel.
int |
Definition at line 1145 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of additional multimodal images.
int | a_nbMultiModalImages |
Definition at line 1117 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of respiratory basis functions.
int | a_nbRespBasisFunctions |
Definition at line 678 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of respiratory gates.
int | a_nbRespGates |
Definition at line 671 of file oImageDimensionsAndQuantification.hh.
int oImageDimensionsAndQuantification::SetNbThreads | ( | const string & | a_nbThreads | ) |
Set the number of threads.
const | string& a_nbThreads |
The string parameter can be a set of two parameters separated by a comma, the first for the number of threads for projections and the second for the number of threads for image operations. If no comma, then the number of threads is the same for all operations.
Definition at line 224 of file oImageDimensionsAndQuantification.cc.
|
inline |
Set the number of time basis functions.
int | a_nbTimeBasisFunctions |
Definition at line 602 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of voxels along the X axis.
INTNB | a_nbVoxX |
Definition at line 794 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of voxels along the Y axis.
INTNB | a_nbVoxY |
Definition at line 801 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the number of voxels along the Z axis.
INTNB | a_nbVoxZ |
Definition at line 808 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the image offset along the X axis, in mm.
FLTNB | a_offsetX |
Definition at line 970 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the image offset along the Y axis, in mm.
FLTNB | a_offsetY |
Definition at line 977 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the image offset along the Z axis, in mm.
FLTNB | a_offsetZ |
Definition at line 984 of file oImageDimensionsAndQuantification.hh.
int oImageDimensionsAndQuantification::SetPETIsotope | ( | int | a_bed, |
const string & | a_isotope | ||
) |
Set the PET isotope for the provided bed.
int | a_bed |
const | string& a_isotope |
Apply decay and branching ratio corrections if the PET isotope is found in the database of the config/ directory
Definition at line 1278 of file oImageDimensionsAndQuantification.cc.
|
inline |
Call the eponym function from the oDynamicDataManager class using the member object.
Definition at line 269 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the basis functions array, calculated by the DynamicModelManager or the DynamicModel.
FLTNB** | a_m2pTimeBasisFunctions |
Definition at line 616 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the file name containing the respiratory basis functions coefficients.
const | string& a_respBasisFunctionsFile |
Definition at line 685 of file oImageDimensionsAndQuantification.hh.
|
inline |
Call the eponym function from the oDynamicDataManager class using the member object.
Definition at line 257 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the Respiratory Static Flag.
bool |
Definition at line 1131 of file oImageDimensionsAndQuantification.hh.
int oImageDimensionsAndQuantification::SetSPECTIsotope | ( | int | a_bed, |
const string & | a_isotope | ||
) |
Set the SPECT isotope for the provided bed.
int | a_bed |
const | string& a_isotope |
Apply decay and branching ratio corrections if the SPECT isotope is found in the database of the config/ directory
Definition at line 1258 of file oImageDimensionsAndQuantification.cc.
|
inline |
Set the basis functions array, calculated by the DynamicModelManager or the DynamicModel.
FLTNB** | a_m2pTimeBasisFunctions |
Definition at line 609 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the Time Static Flag - to be used with Time Basis functions for direct dynamic reconstruction.
bool |
Definition at line 1124 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the member m_verboseLevel to the provided value.
int | a_verboseLevel |
Definition at line 389 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the voxel's size along the X axis, in mm.
FLTNB | a_voxSizeX |
Definition at line 857 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the voxel's size along the Y axis, in mm.
FLTNB | a_voxSizeY |
Definition at line 864 of file oImageDimensionsAndQuantification.hh.
|
inline |
Set the voxel's size along the Z axis, in mm.
FLTNB | a_voxSizeZ |
Definition at line 871 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of cardiac basis functions coefficients
Definition at line 1203 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of frame durations, per bed position
Definition at line 1176 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of frame time start, per bed position
Definition at line 1177 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of frame time stop, per bed position
Definition at line 1178 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of respiratory basis functions coefficients
Definition at line 1197 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of time basis functions coefficients
Definition at line 1175 of file oImageDimensionsAndQuantification.hh.
|
private |
The table of quantification factors, per bed, per frame, per gate
Definition at line 1183 of file oImageDimensionsAndQuantification.hh.
|
private |
The file containing the cardiac basis coefficients
Definition at line 1204 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if no cardiac-basis functions are provided
Definition at line 1205 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean that says if the function CheckParameters() has been called
Definition at line 1229 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying the type of dynamic acquisition to reconstruct
Definition at line 1180 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the images must be flipped along the X axis before being saved (default: false)
Definition at line 1225 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the images must be flipped along the Y axis before being saved (default: false)
Definition at line 1226 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the images must be flipped along the Z axis before being saved (default: false)
Definition at line 1227 of file oImageDimensionsAndQuantification.hh.
|
private |
The percentage of the transaxial field-of-view not masked before saving reconstructed images (default: 0. = none)
Definition at line 1222 of file oImageDimensionsAndQuantification.hh.
|
private |
The size of the field-of-view along the X axis, in mm
Definition at line 1215 of file oImageDimensionsAndQuantification.hh.
|
private |
The size of the field-of-view along the Y axis, in mm
Definition at line 1216 of file oImageDimensionsAndQuantification.hh.
|
private |
The size of the field-of-view along the Z axis, in mm
Definition at line 1217 of file oImageDimensionsAndQuantification.hh.
|
private |
A string containing the list of reconstructed frames
Definition at line 1170 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the attenuation correction is ignored
Definition at line 1185 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the branching ratio correction is ignored
Definition at line 1190 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the calibration correction is ignored
Definition at line 1192 of file oImageDimensionsAndQuantification.hh.
|
private |
The string containing the list of corrections to be ignored
Definition at line 1184 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the decay correction is ignored
Definition at line 1189 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the frame duration correction is ignored
Definition at line 1191 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the normalization correction is ignored
Definition at line 1186 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the random correction is ignored
Definition at line 1187 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if the scatter correction is ignored
Definition at line 1188 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean that says if the function Initialize() has been called
Definition at line 1231 of file oImageDimensionsAndQuantification.hh.
|
private |
log(2.0)/half_life, computed for quantification purposes
Definition at line 1193 of file oImageDimensionsAndQuantification.hh.
|
private |
The rank of the MPI instance
Definition at line 1163 of file oImageDimensionsAndQuantification.hh.
|
private |
The size of the MPI process (i.e. the number of instances)
Definition at line 1164 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of bed positions simultaneously reconstructed
Definition at line 1166 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of cardiac basis functions
Definition at line 1201 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of cardiac gates
Definition at line 1202 of file oImageDimensionsAndQuantification.hh.
|
private |
An integer to convey how many frames from an input sequence of images to be skipped, for use with ImageBasedDynamicModel
Definition at line 1171 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of additional multimodal images
Definition at line 1234 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of respiratory basis functions
Definition at line 1195 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of respiratory gates
Definition at line 1196 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of extrem slices to be masked from both sides of the axial FOV before saving reconstruction images (default: 0)
Definition at line 1223 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of threads for image operations
Definition at line 1161 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of threads for projections
Definition at line 1160 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of time basis functions
Definition at line 1173 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of time frames
Definition at line 1174 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of voxels along the X axis
Definition at line 1207 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of voxels in a slice
Definition at line 1210 of file oImageDimensionsAndQuantification.hh.
|
private |
The total number of voxels
Definition at line 1211 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of voxels along the Y axis
Definition at line 1208 of file oImageDimensionsAndQuantification.hh.
|
private |
The number of voxels along the Z axis
Definition at line 1209 of file oImageDimensionsAndQuantification.hh.
|
private |
The image offset along the X axis, in mm (default: 0.)
Definition at line 1218 of file oImageDimensionsAndQuantification.hh.
|
private |
The image offset along the Y axis, in mm (default: 0.)
Definition at line 1219 of file oImageDimensionsAndQuantification.hh.
|
private |
The image offset along the Z axis, in mm (default: 0.)
Definition at line 1220 of file oImageDimensionsAndQuantification.hh.
|
private |
A flag saying if the bed position has been provided from the datafile
Definition at line 1168 of file oImageDimensionsAndQuantification.hh.
|
private |
The file containing the respiratory basis coefficients
Definition at line 1198 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if no respiratory-basis functions are provided
Definition at line 1199 of file oImageDimensionsAndQuantification.hh.
|
private |
A boolean saying if no time-basis functions are provided
Definition at line 1179 of file oImageDimensionsAndQuantification.hh.
|
private |
The verbose level
Definition at line 1233 of file oImageDimensionsAndQuantification.hh.
|
private |
The voxel's size along the X axis, in mm
Definition at line 1212 of file oImageDimensionsAndQuantification.hh.
|
private |
The voxel's size along the Y axis, in mm
Definition at line 1213 of file oImageDimensionsAndQuantification.hh.
|
private |
The voxel's size along the Z axis, in mm
Definition at line 1214 of file oImageDimensionsAndQuantification.hh.
|
private |
The bed positions used during the reconstruction
Definition at line 1167 of file oImageDimensionsAndQuantification.hh.
|
private |
oDynamicDataManager object related to dynamic raw data management
Definition at line 1157 of file oImageDimensionsAndQuantification.hh.