CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
Public Member Functions | Private Attributes | List of all members
oComputeProjection Class Reference

Class that manages the data update step of analytic projection. More...

#include <oComputeProjection.hh>

Collaboration diagram for oComputeProjection:
Collaboration graph

Public Member Functions

 oComputeProjection (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
 oComputeProjection constructor. More...
 
 ~oComputeProjection ()
 oComputeProjection destructor. More...
 
int DataUpdateStep (vDataFile *ap_DataFile, oProjectionLine *a2p_Line, oImageSpace *ap_Image, vEvent *ap_Event, int a_fr, int a_rg, int a_cg, int th, uint32_t a_timestamp, bool a_discardZeroEvent)
 
int InitNoiseModel (string aNoiseModel)
 
uint32_t GetPoissonNoise (FLTNB a_lambda)
 
void SetVerbose (int a_verboseLevel)
 
 oComputeProjection (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
 oComputeProjection constructor. More...
 
 ~oComputeProjection ()
 oComputeProjection destructor. More...
 
int DataUpdateStep (vDataFile *ap_DataFile, oProjectionLine *a2p_Line, oImageSpace *ap_Image, vEvent *ap_Event, int a_fr, int a_rg, int a_cg, int th, uint32_t a_timestamp, bool a_discardZeroEvent)
 
int InitNoiseModel (string aNoiseModel)
 
uint32_t GetPoissonNoise (FLTNB a_lambda)
 
void SetVerbose (int a_verboseLevel)
 

Private Attributes

oImageDimensionsAndQuantificationmp_ID
 
int m_verbose
 
bool m_noiseModelEnabled
 

Detailed Description

Class that manages the data update step of analytic projection.

The DataUpdateStep computes the data update step and manages Poisson RNG
For SPECT, the image of the projection is written in ImageSpace->m2p_projectionImage
This implementation will be subjected to major modifications with the next update of the analytic simulator tools.

Definition at line 24 of file code/include/analytic_simulator/oComputeProjection.hh.

Constructor & Destructor Documentation

◆ oComputeProjection() [1/2]

oComputeProjection::oComputeProjection ( oImageDimensionsAndQuantification ap_ImageDimensionsAndQuantification)

oComputeProjection constructor.

Parameters
ap_ImageDimensionsAndQuantificationInitialize the member variables to their default values.

Definition at line 20 of file code/src/analytic_simulator/oComputeProjection.cc.

◆ ~oComputeProjection() [1/2]

oComputeProjection::~oComputeProjection ( )

◆ oComputeProjection() [2/2]

oComputeProjection::oComputeProjection ( oImageDimensionsAndQuantification ap_ImageDimensionsAndQuantification)

oComputeProjection constructor.

Parameters
ap_ImageDimensionsAndQuantificationInitialize the member variables to their default values.

◆ ~oComputeProjection() [2/2]

oComputeProjection::~oComputeProjection ( )

oComputeProjection destructor.

Member Function Documentation

◆ DataUpdateStep() [1/2]

int oComputeProjection::DataUpdateStep ( vDataFile ap_DataFile,
oProjectionLine a2p_Line,
oImageSpace ap_Image,
vEvent ap_Event,
int  a_fr,
int  a_rg,
int  a_cg,
int  th,
uint32_t  a_timestamp,
bool  a_discardZeroEvent 
)

Definition at line 64 of file code/src/analytic_simulator/oComputeProjection.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DataUpdateStep() [2/2]

int oComputeProjection::DataUpdateStep ( vDataFile ap_DataFile,
oProjectionLine a2p_Line,
oImageSpace ap_Image,
vEvent ap_Event,
int  a_fr,
int  a_rg,
int  a_cg,
int  th,
uint32_t  a_timestamp,
bool  a_discardZeroEvent 
)

◆ GetPoissonNoise() [1/2]

uint32_t oComputeProjection::GetPoissonNoise ( FLTNB  a_lambda)

◆ GetPoissonNoise() [2/2]

uint32_t oComputeProjection::GetPoissonNoise ( FLTNB  a_lambda)

Definition at line 252 of file code/src/analytic_simulator/oComputeProjection.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitNoiseModel() [1/2]

int oComputeProjection::InitNoiseModel ( string  aNoiseModel)

Definition at line 164 of file code/src/analytic_simulator/oComputeProjection.cc.

Here is the caller graph for this function:

◆ InitNoiseModel() [2/2]

int oComputeProjection::InitNoiseModel ( string  aNoiseModel)

◆ SetVerbose() [1/2]

void oComputeProjection::SetVerbose ( int  a_verboseLevel)
inline

Definition at line 102 of file code/include/analytic_simulator/oComputeProjection.hh.

Here is the caller graph for this function:

◆ SetVerbose() [2/2]

void oComputeProjection::SetVerbose ( int  a_verboseLevel)
inline

Member Data Documentation

◆ m_noiseModelEnabled

bool oComputeProjection::m_noiseModelEnabled
private

Poisson noise enabled or not (default=false)

Definition at line 115 of file code/include/analytic_simulator/oComputeProjection.hh.

◆ m_verbose

int oComputeProjection::m_verbose
private

Verbosity (default=-1)

Definition at line 114 of file code/include/analytic_simulator/oComputeProjection.hh.

◆ mp_ID

oImageDimensionsAndQuantification * oComputeProjection::mp_ID
private

The documentation for this class was generated from the following files: