TPCCLIB
|
Physical decay and isotopes in IMG. More...
#include "libtpcimgio.h"
Go to the source code of this file.
Functions | |
int | imgDecayCorrection (IMG *image, int mode) |
char * | imgIsotope (IMG *img) |
int | imgSetDecayCorrFactors (IMG *image, int mode) |
int | imgBranchingCorrection (IMG *image, int mode, int verbose, char *status) |
Physical decay and isotopes in IMG.
Definition in file imgdecayc.c.
int imgBranchingCorrection | ( | IMG * | image, |
int | mode, | ||
int | verbose, | ||
char * | status ) |
Corrects image data for branching fraction (mode=1) or removes correction (mode=0). Removal is primarily based on branching factor stored in IMG structure, secondarily on isotope; after removal, branching factor is set to 1, and pixel values and calibration factor are multiplied with it. Correction is based on branching fractions in branch.h; pixel values and calibration factor are divided by it, and its value is stored in IMG structure.
image | Pointer to IMG data |
mode | Branching fraction correction (1) or removal of correction (0) |
verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
status | Pointer to allocated string where error message will be written; NULL, if not needed. |
Definition at line 132 of file imgdecayc.c.
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 16 of file imgdecayc.c.
char * imgIsotope | ( | IMG * | img | ) |
Returns pointer to string describing the isotope in image data
img | image structure |
Definition at line 76 of file imgdecayc.c.
Referenced by ecat63AddImg(), ecat63WriteAllImg(), img2sif(), imgSetEcat63MHeader(), imgSetEcat7MHeader(), and sifAllocateWithIMG().
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 87 of file imgdecayc.c.