#include "img.h"
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) |
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.
image | pointer to IMG data |
mode | 0=Remove decay correction; 1=Correct for decay |
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
img | image stucture |
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.
image | pointer to IMG data |
mode | factors are calculated for decay correction (1) or for removing decay correction (0) |
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.