TPCCLIB
|
Functions for processing isotope half-life and decay correction. More...
#include "libtpcmisc.h"
Go to the source code of this file.
Functions | |
char * | hlIsotopeCode (int isotope) |
double | hlFromIsotope (char *isocode) |
double | hl2lambda (double halflife) |
double | hlLambda2factor (double lambda, double frametime, double framedur) |
float | hlLambda2factor_float (float lambda, float frametime, float framedur) |
char * | hlCorrectIsotopeCode (char *isocode) |
int | hlIsotopeFromHalflife (double halflife) |
Functions for processing isotope half-life and decay correction.
Definition in file halflife.c.
double hl2lambda | ( | double | halflife | ) |
Calculates the isotope lambda from specified halflife.
halflife | halflife time value |
Definition at line 84 of file halflife.c.
Referenced by atnMake(), dftDecayCorrection(), img2sif(), imgDecayCorrection(), imgSetDecayCorrFactors(), and noiseSD4Simulation().
char * hlCorrectIsotopeCode | ( | char * | isocode | ) |
Check that isotope code, e.g. F-18, is in valid format, containing '-' and in this order. Returns the correct isotope code.
isocode | Pointer to string "C-11", "11c" etc; contents of this string is not changed, and this is not returned in any case |
Definition at line 141 of file halflife.c.
Referenced by hlFromIsotope(), and sif2dft().
double hlFromIsotope | ( | char * | isocode | ) |
Identify the isotope from the specified isotope code string and return the halflife (min). This function checks the validity of the isotope string using hlCorrectIsotopeCode(), but does not change it in any way.
isocode | Pointer to string "C-11", "18f" etc. This argument is not changed. |
Definition at line 55 of file halflife.c.
Referenced by dftDecayCorrection(), imgReadAnalyzeHeader(), imgReadModelingData(), imgReadNiftiHeader(), noiseSD4SimulationFromDFT(), and sif2img().
char * hlIsotopeCode | ( | int | isotope | ) |
Isotope code as a string, based on isotope list number.
isotope | index of PET isotope in the list in halflife.c |
Definition at line 36 of file halflife.c.
Referenced by dftDecayCorrection(), and imgIsotope().
int hlIsotopeFromHalflife | ( | double | halflife | ) |
Identify the isotope based on its halflife (in minutes).
halflife | Half-life in minutes |
Definition at line 195 of file halflife.c.
Referenced by dftDecayCorrection(), imgBranchingCorrection(), and imgIsotope().
double hlLambda2factor | ( | double | lambda, |
double | frametime, | ||
double | framedur ) |
Calculate the decay correction factor for specified isotope lambda.
lambda | Negative lambda removes decay correction |
frametime | Frame start time, or mid time if framedur<=0 |
framedur | If unknown, set <0 and give mid time for frametime |
Definition at line 98 of file halflife.c.
Referenced by atnMake(), dftDecayCorrection(), img2sif(), and noiseSD4Simulation().
float hlLambda2factor_float | ( | float | lambda, |
float | frametime, | ||
float | framedur ) |
Calculate the decay correction factor for specified isotope lambda. Version for floats (mainly image data).
lambda | Negative lambda removes decay correction |
frametime | Frame start time, or mid time if framedur<=0 |
framedur | If unknown, set <0 and give mid time for frametime |
Definition at line 118 of file halflife.c.
Referenced by imgDecayCorrection(), and imgSetDecayCorrFactors().