Go to the source code of this file.
Macro Definition Documentation
#define HL_Br76 978.33 /* 58700 s */ |
#define HL_Cu62 9.7 /* 582 s */ |
#define HL_Ge68 396000.0 /* 275 d */ |
#define HL_I124 6013.44 /* 4.176 */ |
#define HL_Na22 1368000.0 |
#define HL_O15 2.05 /* 123 s */ |
Isotope halflife in minutes
#define HL_Rb82 1.25 /* 75 s */ |
#define M_LN2 0.69314718055994530942 |
Function Documentation
double hl2lambda |
( |
double |
halflife | ) |
|
Calculates the isotope lambda from specified halflife.
- Parameters:
-
halflife | halflife time value |
- Returns:
- A negative value is returned in case of error.
References M_LN2.
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.
- Parameters:
-
isocode | Pointer to string "C-11", "11c" etc; contents of this string is not changed, and this is not returned in any case |
- Returns:
- pointer to correct isotope code, and NULL if it was not valid and could not be corrected.
References isotope_code.
Referenced by hlFromIsotope().
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.
- Parameters:
-
isocode | Pointer to string "C-11", "18f" etc. This argument is not changed |
- Returns:
- A negative value is returned in case of error.
References hlCorrectIsotopeCode(), isotope_code, and isotope_halflife.
char* hlIsotopeCode |
( |
int |
isotope | ) |
|
Isotope code as a string, based on isotope list number.
- Parameters:
-
isotope | index of PET isotope in the list in halflife.c |
- Returns:
- pointer to static string or "unknown".
References isotope_code.
int hlIsotopeFromHalflife |
( |
double |
halflife | ) |
|
Identify the isotope based on its halflife (in minutes).
- Parameters:
-
halflife | Half-life in minutes |
- Returns:
- the isotope list number, or negative value if not identified.
References isotope_halflife.
double hlLambda2factor |
( |
double |
lambda, |
|
|
double |
frametime, |
|
|
double |
framedur |
|
) |
| |
Calculate the decay correction factor for specified isotope lambda.
- Parameters:
-
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 |
- Returns:
- A negative value is returned in case of error.
float hlLambda2factor_float |
( |
float |
lambda, |
|
|
float |
frametime, |
|
|
float |
framedur |
|
) |
| |
Calculate the decay correction factor for specified isotope lambda. Version for floats (mainly image data).
- Parameters:
-
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 |
- Returns:
- A negative value is returned in case of error.