31 #ifndef IDATAFILESPECT_HH
32 #define IDATAFILESPECT_HH 1
210 inline void SetNbBins(uint16_t a_binTrs, uint16_t a_binAxl)
int CheckSpecificConsistencyWithAnotherDataFile(vDataFile *ap_DataFile)
Check consistency between 'this' and the provided datafile, for specific characteristics.
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 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
int WriteHeader()
Generate a header file according to the data output information.
Inherit from iEventSPECT. Class for SPECT histogram mode events.
void DescribeSpecific()
Implementation of the pure virtual eponym function that simply prints info about the datafile...
int 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_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.
int GetHeadRotDirection()
Simply return m_headRotDirection.
int WriteHistoEvent(iEventHistoSPECT *ap_Event, int a_th)
Write a SPECT histogram event.
vEvent * GetEventSpecific(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
int SetSpecificParametersFrom(vDataFile *ap_DataFile)
Initialize all parameters specific to SPECT from the provided datafile.
FLTNB * mp_CORtoDetectorDistance
Declaration of class iEventHistoSPECT.
Mother class for the Event objects.
int WriteEvent(vEvent *ap_Event, int a_th=0)
Write event according to the chosen type of data.
FLTNB * GetCORtoDetectorDistance()
void SetEventKindFlagOn()
set to true the flag indicating the presence of the kind of a list-mode event in the datafile ...
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.