9 #ifndef IDATAFILESPECT_HH
10 #define IDATAFILESPECT_HH 1
172 inline void SetNbBins(uint16_t a_binTrs, uint16_t a_binAxl)
This class is designed to be a mother virtual class for Datafile.
This header file is mainly used to declare some macro definitions and all includes needed from the st...
bool GetNormCorrectionFlag()
Simply return m_normCorrectionFlag.
int InitAngles(FLTNB *ap_angles)
allocate memory for the mp_angles variable using m_nbProjections and initialize the projection angles...
int CheckSpecificConsistencyWithAnotherDatafile(vDataFile *ap_Datafile)
Check consistency between 'this' and the provided datafile, for specific characteristics.
int ReadSpecificInfoInHeader(bool a_affectQuantificationFlag)
Read through the header file and recover specific SPECT information.
bool GetEventKindFlag()
Simply return m_eventKindFlag.
iDataFileSPECT()
iDataFileSPECT constructor. Initialize the member variables to their default values.
bool m_scatCorrectionFlag
Inherit from iEventSPECT. Class for SPECT histogram mode events.
int PROJ_WriteListEvent(iEventListSPECT *ap_Event, int a_th)
Write a SPECT list-mode event.
void SetHeadRotDirection(int a_direction)
initialize the rotation direction of the gamma camera(s)
~iDataFileSPECT()
iDataFileSPECT destructor.
uint16_t m_nbOfProjections
void SetNbProjections(uint16_t a_nbProjections)
initialize the number of projections
void SetIsotope(string a_value)
initialize the isotope string value
int PROJ_WriteEvent(vEvent *ap_Event, int a_th)
Write event according to the chosen type of data.
int PROJ_GetScannerSpecificParameters()
Get SPECT specific parameters for projections from the scanner object, through the scannerManager...
void SetNbBins(uint16_t a_binTrs, uint16_t a_binAxl)
initialize the bin values
int ComputeSizeEvent()
Computation of the size of each event according to the mandatory/optional correction fields...
Declaration of class vScanner.
int CheckSpecificParameters()
Check parameters specific to SPECT data.
Declaration of class vDataFile.
int CheckFileSizeConsistency()
This function is implemented in child classes Check if file size is consistent. ...
int InitCorToDetectorDistance(FLTNB *ap_CORtoDetectorDistance)
allocate memory for the ap_CORtoDetectorDistance variable using m_nbProjections, and initialize the p...
uint16_t GetNbBins(int axis)
uint16_t GetNbProjections()
Inherit from vDataFile. Class that manages the reading of a SPECT input file (header + data)...
Declaration of class iEventListSPECT.
vEvent * GetEventFromBuffer(char *ap_buffer, int a_th)
Read an event from the position pointed by 'ap_buffer', parse the generic or modality-specific inform...
bool m_normCorrectionFlag
int PROJ_InitFile()
Initialize the fstream objets for output writing as well as some other variables specific to the Proj...
bool m_ignoreNormCorrectionFlag
FLTNB * mp_CORtoDetectorDistance
Declaration of class iEventHistoSPECT.
int PROJ_WriteHistoEvent(iEventHistoSPECT *ap_Event, int a_th)
Write a SPECT histogram event.
Mother class for the Event objects.
void SetEventKindFlagOn()
set to true the flag indicating the presence of the kind of a list-mode event in the datafile ...
int PROJ_WriteHeader()
Generate a header file according to the projection and data output informations. Used by Projection...
int PrepareDataFile()
Store different kind of information inside arrays (data relative to specific correction as well as ba...
bool m_ignoreScatCorrectionFlag
bool GetScatCorrectionFlag()
Simply return m_scatCorrectionFlag.
Inherit from iEventSPECT. Class for SPECT list-mode events.