Functions
imgdecay.h File Reference
#include "img.h"
Include dependency graph for imgdecay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int imgDecayCorrection (IMG *img, int mode)
char * imgIsotope (IMG *img)
int imgSetDecayCorrFactors (IMG *image, int mode)

Function Documentation

int imgDecayCorrection ( IMG image,
int  mode 
)

Corrects (mode=1) or removes correction (mode=0) for physical decay. Removal is based on existing decay correction factors, when possible.

Parameters:
imagepointer to IMG data
mode0=Remove decay correction; 1=Correct for decay
Returns:
0 if ok, 1 image status is not 'occupied', 2 decay already corrected/not corrected, 3 image frame times missing

Definition at line 59 of file imgdecay.c.

References IMG::decayCorrected, IMG::decayCorrFactor, IMG::dimt, IMG::dimx, IMG::dimy, IMG::dimz, IMG::end, IMG_STATUS_OCCUPIED, IMG_TEST, IMG::isotopeHalflife, IMG::m, IMG::start, and IMG::status.

char* imgIsotope ( IMG img)

Returns pointer to string describing the isotope in image data

Parameters:
imgimage stucture
Returns:
pointer to string

Definition at line 110 of file imgdecay.c.

References IMG::isotopeHalflife.

Referenced by ecat63AddImg(), ecat63WriteAllImg(), imgSetEcat63MHeader(), and imgSetEcat7MHeader().

int imgSetDecayCorrFactors ( IMG image,
int  mode 
)

Sets (mode=1) or removes (mode=0) decay correction factors in IMG. IMG pixel data is not changed.

Parameters:
imagepointer to IMG data
modefactors are calculated for decay correction (1) or for removing decay correction (0)
Returns:
0 if ok, 1 image status is not 'occupied', 2 invalid exponent value, 3 image frame times are missing

Definition at line 126 of file imgdecay.c.

References IMG::decayCorrected, IMG::decayCorrFactor, IMG::dimt, IMG::end, IMG_STATUS_OCCUPIED, IMG::isotopeHalflife, IMG::start, and IMG::status.