![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
Singleton class that Instantiate and initialize the scanner object. More...
#include <sScannerManager.hh>
Public Member Functions | |
void | Describe () |
Call the eponym function from the Scanner object (if initialized) More... | |
int | CheckParameters () |
Check if all parameters have been correctly initialized, and call the CheckParameters function of the scanner object. More... | |
int | Initialize () |
Initialization : . More... | |
int | ShowScannersDescription () |
Get the description associated to the different scanners and print all on screen. Walk through the scanner repository and look for the keyword "description" in .geom file and .hscan file. More... | |
int | FindScannerSystem (string a_scannerName) |
int | InitScannerWithFile (string a_pathScanFile, string a_scannerName, int a_fileTypeFlag) |
int | BuildScannerObject () |
Instantiate the specific scanner object related to the modality, and set verbosity of scanner object. More... | |
int | GetGeometricInfoFromDataFile (string a_pathToDataFilename) |
int | InstantiateScanner () |
Instantiate scanner using the related function in the scanner classes. More... | |
int | BuildLUT () |
Call the eponym function of the scanner class. More... | |
int | GetModalityFromString (string a_systemStr) |
bool | HasUserScannerFile () |
string | GetPathToScannerFile () |
string | GetScannerName () |
int | GetScannerType () |
vScanner * | GetScannerObject () |
int | GetSystemNbElts () |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ID) |
void | SetSaveLUTFlag (bool a_flag) |
bool | SaveLUTFlag () |
Get flag indicating a LUT generated by a geom file should be written on disk or not. More... | |
int64_t | PROJ_GetModalityStopValueMainLoop () |
Get the stop value for the main loop of analytic projection depending on the modality. More... | |
int64_t | PROJ_GetModalityStartValueInnerLoop (int64_t a_elt1) |
int64_t | PROJ_GetCurrentProgression (int64_t a_elt1, int64_t a_elt2, int64_t *ap_nbEltsArray, uint16_t a_nbDynImgProcessed) |
int64_t | PROJ_GetProgressionFinalValue () |
Get numerator value according to the modality to compute percent progression during the projection process. More... | |
int | GetSPECTSpecificParameters (uint16_t *ap_nbOfProjections, uint16_t *ap_nbHeads, FLTNB *ap_acquisitionZoom, uint16_t *ap_nbOfBins, FLTNB *ap_pixSizeXY, FLTNB *&ap_angles, FLTNB *&ap_CORtoDetectorDistance, int *ap_headRotDirection) |
int | GetCTSpecificParameters (uint16_t *ap_nbOfProjections, FLTNB *&ap_angles, int *ap_headRotDirection) |
int | PROJ_GetPETSpecificParameters (FLTNB *ap_maxAxialDiffmm) |
int | PROJ_SetPETSpecificParameters (FLTNB a_maxAxialDiffmm) |
int | PROJ_SetSPECTSpecificParameters (uint16_t *ap_nbOfBins, uint32_t a_nbOfProjections, FLTNB a_firstAngle, FLTNB a_stepAngle, FLTNB *ap_projectionAngles, FLTNB a_CORtoDetectorDistance, string a_rotDirection) |
void | Describe () |
int | CheckParameters () |
int | Initialize () |
int | ShowScannersDescription () |
int | FindScannerSystem (string a_scannerName) |
int | InitScannerWithFile (string a_pathScanFile, string a_scannerName, int a_fileTypeFlag) |
int | BuildScannerObject () |
int | GetGeometricInfoFromDataFile (string a_pathToDataFilename) |
int | InstantiateScanner () |
int | BuildLUT () |
int | GetModalityFromString (string a_systemStr) |
bool | HasUserScannerFile () |
string | GetPathToScannerFile () |
string | GetScannerName () |
int | GetScannerType () |
vScanner * | GetScannerObject () |
int | GetSystemNbElts () |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ID) |
void | SetSaveLUTFlag (bool a_flag) |
bool | SaveLUTFlag () |
int64_t | PROJ_GetModalityStopValueMainLoop () |
int64_t | PROJ_GetModalityStartValueInnerLoop (int64_t a_elt1) |
int64_t | PROJ_GetCurrentProgression (int64_t a_elt1, int64_t a_elt2, int64_t *ap_nbEltsArray, uint16_t a_nbDynImgProcessed) |
int64_t | PROJ_GetProgressionFinalValue () |
int | GetSPECTSpecificParameters (uint16_t *ap_nbOfProjections, uint16_t *ap_nbHeads, FLTNB *ap_acquisitionZoom, uint16_t *ap_nbOfBins, FLTNB *ap_pixSizeXY, FLTNB *&ap_angles, FLTNB *&ap_CORtoDetectorDistance, int *ap_headRotDirection) |
int | GetCTSpecificParameters (uint16_t *ap_nbOfProjections, FLTNB *&ap_angles, int *ap_headRotDirection) |
int | PROJ_GetPETSpecificParameters (FLTNB *ap_maxAxialDiffmm) |
int | PROJ_SetPETSpecificParameters (FLTNB a_maxAxialDiffmm) |
int | PROJ_SetSPECTSpecificParameters (uint16_t *ap_nbOfBins, uint32_t a_nbOfProjections, FLTNB a_firstAngle, FLTNB a_stepAngle, FLTNB *ap_projectionAngles, FLTNB a_CORtoDetectorDistance, string a_rotDirection) |
Static Public Member Functions | |
static sScannerManager * | GetInstance () |
Instanciate the singleton object and Initialize member variables if not already done, return a pointer to this object otherwise. More... | |
static sScannerManager * | GetInstance () |
Private Member Functions | |
sScannerManager () | |
sScannerManager constructor. More... | |
~sScannerManager () | |
sScannerManager destructor. More... | |
sScannerManager (sScannerManager const &) | |
void | operator= (sScannerManager const &) |
int | GetAvailableScanners (vector< string > *ap_scannerNames) |
sScannerManager () | |
sScannerManager constructor. More... | |
~sScannerManager () | |
sScannerManager destructor. More... | |
sScannerManager (sScannerManager const &) | |
void | operator= (sScannerManager const &) |
int | GetAvailableScanners (vector< string > *ap_scannerNames) |
Private Attributes | |
vScanner * | mp_Scanner |
oImageDimensionsAndQuantification * | mp_ID |
int | m_verbose |
string | m_pathToScannerFile |
string | m_scannerName |
bool | m_hasUserScannerFile |
bool | m_hasGenericScannerFile |
bool | m_allParametersChecked |
bool | m_saveLUTFlag |
Static Private Attributes | |
static sScannerManager * | mp_Instance = NULL |
Singleton class that Instantiate and initialize the scanner object.
This class Instantiate and initialize the scanner object depending on its initilization file (generic .geom file or user LUT).
It holds several informations on the system and can be accessed from every class.
Definition at line 49 of file code/include/scanner/sScannerManager.hh.
|
private |
sScannerManager constructor.
It is private at this class is singleton.
It should be instanciated using the GetInstance() function
Initialize the member variables to their default values.
Definition at line 24 of file code/src/scanner/sScannerManager.cc.
|
private |
sScannerManager destructor.
Definition at line 44 of file code/src/scanner/sScannerManager.cc.
|
inlineprivate |
Definition at line 363 of file code/include/scanner/sScannerManager.hh.
|
private |
sScannerManager constructor.
It is private at this class is singleton.
It should be instanciated using the GetInstance() function
Initialize the member variables to their default values.
|
private |
sScannerManager destructor.
|
inlineprivate |
Definition at line 363 of file include/scanner/sScannerManager.hh.
int sScannerManager::BuildLUT | ( | ) |
Call the eponym function of the scanner class.
Definition at line 468 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::BuildLUT | ( | ) |
int sScannerManager::BuildScannerObject | ( | ) |
Instantiate the specific scanner object related to the modality, and set verbosity of scanner object.
Definition at line 354 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::BuildScannerObject | ( | ) |
int sScannerManager::CheckParameters | ( | ) |
int sScannerManager::CheckParameters | ( | ) |
Check if all parameters have been correctly initialized, and call the CheckParameters function of the scanner object.
Definition at line 58 of file code/src/scanner/sScannerManager.cc.
void sScannerManager::Describe | ( | ) |
void sScannerManager::Describe | ( | ) |
Call the eponym function from the Scanner object (if initialized)
Definition at line 109 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::FindScannerSystem | ( | string | a_scannerName | ) |
int sScannerManager::FindScannerSystem | ( | string | a_scannerName | ) |
Definition at line 226 of file code/src/scanner/sScannerManager.cc.
|
private |
Definition at line 497 of file code/src/scanner/sScannerManager.cc.
|
private |
int sScannerManager::GetCTSpecificParameters | ( | uint16_t * | ap_nbOfProjections, |
FLTNB *& | ap_angles, | ||
int * | ap_headRotDirection | ||
) |
Definition at line 662 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::GetCTSpecificParameters | ( | uint16_t * | ap_nbOfProjections, |
FLTNB *& | ap_angles, | ||
int * | ap_headRotDirection | ||
) |
int sScannerManager::GetGeometricInfoFromDataFile | ( | string | a_pathToDataFilename | ) |
Definition at line 406 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::GetGeometricInfoFromDataFile | ( | string | a_pathToDataFilename | ) |
|
inlinestatic |
Definition at line 60 of file include/scanner/sScannerManager.hh.
|
inlinestatic |
Instanciate the singleton object and Initialize member variables if not already done, return a pointer to this object otherwise.
Definition at line 60 of file code/include/scanner/sScannerManager.hh.
int sScannerManager::GetModalityFromString | ( | string | a_systemStr | ) |
int sScannerManager::GetModalityFromString | ( | string | a_systemStr | ) |
Definition at line 552 of file code/src/scanner/sScannerManager.cc.
|
inline |
Definition at line 173 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 173 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 179 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 179 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 192 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 192 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 186 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 186 of file include/scanner/sScannerManager.hh.
int sScannerManager::GetSPECTSpecificParameters | ( | uint16_t * | ap_nbOfProjections, |
uint16_t * | ap_nbHeads, | ||
FLTNB * | ap_acquisitionZoom, | ||
uint16_t * | ap_nbOfBins, | ||
FLTNB * | ap_pixSizeXY, | ||
FLTNB *& | ap_angles, | ||
FLTNB *& | ap_CORtoDetectorDistance, | ||
int * | ap_headRotDirection | ||
) |
int sScannerManager::GetSPECTSpecificParameters | ( | uint16_t * | ap_nbOfProjections, |
uint16_t * | ap_nbHeads, | ||
FLTNB * | ap_acquisitionZoom, | ||
uint16_t * | ap_nbOfBins, | ||
FLTNB * | ap_pixSizeXY, | ||
FLTNB *& | ap_angles, | ||
FLTNB *& | ap_CORtoDetectorDistance, | ||
int * | ap_headRotDirection | ||
) |
Definition at line 617 of file code/src/scanner/sScannerManager.cc.
|
inline |
Definition at line 198 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 198 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 167 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 167 of file code/include/scanner/sScannerManager.hh.
int sScannerManager::Initialize | ( | ) |
int sScannerManager::Initialize | ( | ) |
Initialization :
.
Definition at line 141 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::InitScannerWithFile | ( | string | a_pathScanFile, |
string | a_scannerName, | ||
int | a_fileTypeFlag | ||
) |
int sScannerManager::InitScannerWithFile | ( | string | a_pathScanFile, |
string | a_scannerName, | ||
int | a_fileTypeFlag | ||
) |
Definition at line 320 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::InstantiateScanner | ( | ) |
int sScannerManager::InstantiateScanner | ( | ) |
Instantiate scanner using the related function in the scanner classes.
Definition at line 434 of file code/src/scanner/sScannerManager.cc.
|
inlineprivate |
Definition at line 364 of file include/scanner/sScannerManager.hh.
|
inlineprivate |
Definition at line 364 of file code/include/scanner/sScannerManager.hh.
int64_t sScannerManager::PROJ_GetCurrentProgression | ( | int64_t | a_elt1, |
int64_t | a_elt2, | ||
int64_t * | ap_nbEltsArray, | ||
uint16_t | a_nbDynImgProcessed | ||
) |
Definition at line 795 of file code/src/scanner/sScannerManager.cc.
int64_t sScannerManager::PROJ_GetCurrentProgression | ( | int64_t | a_elt1, |
int64_t | a_elt2, | ||
int64_t * | ap_nbEltsArray, | ||
uint16_t | a_nbDynImgProcessed | ||
) |
int64_t sScannerManager::PROJ_GetModalityStartValueInnerLoop | ( | int64_t | a_elt1 | ) |
int64_t sScannerManager::PROJ_GetModalityStartValueInnerLoop | ( | int64_t | a_elt1 | ) |
Definition at line 744 of file code/src/scanner/sScannerManager.cc.
int64_t sScannerManager::PROJ_GetModalityStopValueMainLoop | ( | ) |
int64_t sScannerManager::PROJ_GetModalityStopValueMainLoop | ( | ) |
Get the stop value for the main loop of analytic projection depending on the modality.
Definition at line 700 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::PROJ_GetPETSpecificParameters | ( | FLTNB * | ap_maxAxialDiffmm | ) |
int sScannerManager::PROJ_GetPETSpecificParameters | ( | FLTNB * | ap_maxAxialDiffmm | ) |
Definition at line 919 of file code/src/scanner/sScannerManager.cc.
int64_t sScannerManager::PROJ_GetProgressionFinalValue | ( | ) |
int64_t sScannerManager::PROJ_GetProgressionFinalValue | ( | ) |
Get numerator value according to the modality to compute percent progression during the projection process.
Definition at line 844 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::PROJ_SetPETSpecificParameters | ( | FLTNB | a_maxAxialDiffmm | ) |
int sScannerManager::PROJ_SetPETSpecificParameters | ( | FLTNB | a_maxAxialDiffmm | ) |
Definition at line 889 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::PROJ_SetSPECTSpecificParameters | ( | uint16_t * | ap_nbOfBins, |
uint32_t | a_nbOfProjections, | ||
FLTNB | a_firstAngle, | ||
FLTNB | a_stepAngle, | ||
FLTNB * | ap_projectionAngles, | ||
FLTNB | a_CORtoDetectorDistance, | ||
string | a_rotDirection | ||
) |
Definition at line 963 of file code/src/scanner/sScannerManager.cc.
int sScannerManager::PROJ_SetSPECTSpecificParameters | ( | uint16_t * | ap_nbOfBins, |
uint32_t | a_nbOfProjections, | ||
FLTNB | a_firstAngle, | ||
FLTNB | a_stepAngle, | ||
FLTNB * | ap_projectionAngles, | ||
FLTNB | a_CORtoDetectorDistance, | ||
string | a_rotDirection | ||
) |
|
inline |
Definition at line 228 of file include/scanner/sScannerManager.hh.
|
inline |
Get flag indicating a LUT generated by a geom file should be written on disk or not.
Definition at line 228 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 212 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 212 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 220 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 220 of file include/scanner/sScannerManager.hh.
|
inline |
Definition at line 205 of file code/include/scanner/sScannerManager.hh.
|
inline |
Definition at line 205 of file include/scanner/sScannerManager.hh.
int sScannerManager::ShowScannersDescription | ( | ) |
int sScannerManager::ShowScannersDescription | ( | ) |
Get the description associated to the different scanners and print all on screen.
Walk through the scanner repository and look for the keyword "description" in .geom file and .hscan file.
Definition at line 173 of file code/src/scanner/sScannerManager.cc.
|
private |
Boolean indicating if all variables of the class have been checked
Definition at line 386 of file code/include/scanner/sScannerManager.hh.
|
private |
Boolean indicating if the scanner geometry if defined by a generic file
Definition at line 385 of file code/include/scanner/sScannerManager.hh.
|
private |
Boolean indicating if the scanner geometry if defined by a user LUT
Definition at line 384 of file code/include/scanner/sScannerManager.hh.
|
private |
String containing the path to the scanner file
Definition at line 382 of file code/include/scanner/sScannerManager.hh.
|
private |
Flag indicating a LUT generated by a geom file should be written on disk or not.
Definition at line 387 of file code/include/scanner/sScannerManager.hh.
|
private |
String containing the scanner name
Definition at line 383 of file code/include/scanner/sScannerManager.hh.
|
private |
Verbosity
Definition at line 381 of file code/include/scanner/sScannerManager.hh.
|
private |
Pointer to the image dimensions and quantification object
Definition at line 380 of file code/include/scanner/sScannerManager.hh.
|
staticprivate |
Pointer to the instance of this class
Definition at line 378 of file code/include/scanner/sScannerManager.hh.
|
private |
Pointer to the Scanner object
Definition at line 379 of file code/include/scanner/sScannerManager.hh.