Go to the source code of this file.
Enumerations | |
enum | { IMGUNIT_UNKNOWN, IMGUNIT_CPS, IMGUNIT_COUNTS, IMGUNIT_KBQ_PER_ML, IMGUNIT_SEC_KBQ_PER_ML, IMGUNIT_PER_SEC, IMGUNIT_PER_MIN, IMGUNIT_ML_PER_ML, IMGUNIT_ML_PER_DL, IMGUNIT_ML_PER_ML_PER_MIN, IMGUNIT_ML_PER_DL_PER_MIN, IMGUNIT_UNITLESS, IMGUNIT_NCI_PER_ML, IMGUNIT_MBQ_PER_ML, IMGUNIT_BQ_PER_ML, IMGUNIT_UCI_PER_ML, IMGUNIT_UMOL_PER_MIN_PER_100G, IMGUNIT_MG_PER_MIN_PER_100G } |
Functions | |
int | imgUnitId (char *unit) |
void | imgUnitFromEcat (IMG *img, int ecat_unit) |
void | imgUnitFromEcat7 (IMG *img, ECAT7_mainheader *h) |
int | imgUnitToEcat6 (IMG *img) |
void | imgUnitToEcat7 (IMG *img, ECAT7_mainheader *h) |
char * | imgUnit (int dunit) |
int | imgSetUnit (IMG *img, char *unit) |
anonymous enum |
int imgSetUnit | ( | IMG * | img, |
char * | unit | ||
) |
Sets the unit in IMG based on specified unit string.
Definition at line 377 of file imgunit.c.
References imgUnitId(), and IMG::unit.
char* imgUnit | ( | int | dunit | ) |
Return pointer to string describing the calibrated image data unit
dunit | index of img_unit_string[] |
Definition at line 365 of file imgunit.c.
References img_unit_string, and IMGUNIT_UNKNOWN.
Referenced by imgInfo().
void imgUnitFromEcat | ( | IMG * | img, |
int | ecat_unit | ||
) |
Set IMG calibration unit based on ECAT 6.3 unit
img | target image structure |
ecat_unit | calibration unit code number |
Definition at line 160 of file imgunit.c.
References IMGUNIT_BQ_PER_ML, IMGUNIT_COUNTS, IMGUNIT_CPS, IMGUNIT_KBQ_PER_ML, IMGUNIT_MBQ_PER_ML, IMGUNIT_MG_PER_MIN_PER_100G, IMGUNIT_ML_PER_DL_PER_MIN, IMGUNIT_NCI_PER_ML, IMGUNIT_PER_MIN, IMGUNIT_PER_SEC, IMGUNIT_SEC_KBQ_PER_ML, IMGUNIT_UCI_PER_ML, IMGUNIT_UMOL_PER_MIN_PER_100G, IMGUNIT_UNITLESS, IMGUNIT_UNKNOWN, and IMG::unit.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), imgGetEcat63MHeader(), and imgReadEcat63Header().
void imgUnitFromEcat7 | ( | IMG * | img, |
ECAT7_mainheader * | h | ||
) |
Set IMG calibration unit based on ECAT7 main header
img | pointer to IMG data where unit will be set |
h | pointer to source ECAT7 main header |
Definition at line 210 of file imgunit.c.
References ecat7_mainheader::calibration_units, ecat7_mainheader::calibration_units_label, ecat7_mainheader::data_units, IMGUNIT_BQ_PER_ML, IMGUNIT_UNKNOWN, imgUnitId(), and IMG::unit.
Referenced by imgGetEcat7MHeader().
int imgUnitId | ( | char * | unit | ) |
Identifies the specified unit string as IMG unit.
unit | pointer to string |
Definition at line 91 of file imgunit.c.
References IMGUNIT_BQ_PER_ML, IMGUNIT_COUNTS, IMGUNIT_CPS, IMGUNIT_KBQ_PER_ML, IMGUNIT_MBQ_PER_ML, IMGUNIT_MG_PER_MIN_PER_100G, IMGUNIT_ML_PER_DL, IMGUNIT_ML_PER_DL_PER_MIN, IMGUNIT_ML_PER_ML, IMGUNIT_ML_PER_ML_PER_MIN, IMGUNIT_NCI_PER_ML, IMGUNIT_PER_MIN, IMGUNIT_PER_SEC, IMGUNIT_SEC_KBQ_PER_ML, IMGUNIT_UCI_PER_ML, IMGUNIT_UMOL_PER_MIN_PER_100G, IMGUNIT_UNITLESS, and IMGUNIT_UNKNOWN.
Referenced by imgSetUnit(), and imgUnitFromEcat7().
int imgUnitToEcat6 | ( | IMG * | img | ) |
Return ECAT 6.3 calibration unit based on IMG unit
img | image structure |
Definition at line 233 of file imgunit.c.
References IMGUNIT_BQ_PER_ML, IMGUNIT_COUNTS, IMGUNIT_CPS, IMGUNIT_KBQ_PER_ML, IMGUNIT_MBQ_PER_ML, IMGUNIT_MG_PER_MIN_PER_100G, IMGUNIT_ML_PER_DL, IMGUNIT_ML_PER_DL_PER_MIN, IMGUNIT_ML_PER_ML, IMGUNIT_ML_PER_ML_PER_MIN, IMGUNIT_NCI_PER_ML, IMGUNIT_PER_MIN, IMGUNIT_PER_SEC, IMGUNIT_SEC_KBQ_PER_ML, IMGUNIT_UCI_PER_ML, IMGUNIT_UMOL_PER_MIN_PER_100G, IMGUNIT_UNITLESS, and IMG::unit.
Referenced by ecat63AddImg(), ecat63WriteAllImg(), imgSetEcat63MHeader(), and imgSetEcat63SHeader().
void imgUnitToEcat7 | ( | IMG * | img, |
ECAT7_mainheader * | h | ||
) |
Set ECAT 7 mainheader calibration units based on IMG unit
img | source image stucture |
h | target Ecat7 main header |
Definition at line 266 of file imgunit.c.
References ecat7_mainheader::calibration_units, ecat7_mainheader::calibration_units_label, ecat7_mainheader::data_units, IMGUNIT_BQ_PER_ML, IMGUNIT_COUNTS, IMGUNIT_CPS, IMGUNIT_KBQ_PER_ML, IMGUNIT_MBQ_PER_ML, IMGUNIT_MG_PER_MIN_PER_100G, IMGUNIT_ML_PER_DL, IMGUNIT_ML_PER_DL_PER_MIN, IMGUNIT_ML_PER_ML, IMGUNIT_ML_PER_ML_PER_MIN, IMGUNIT_NCI_PER_ML, IMGUNIT_PER_MIN, IMGUNIT_PER_SEC, IMGUNIT_SEC_KBQ_PER_ML, IMGUNIT_UCI_PER_ML, IMGUNIT_UMOL_PER_MIN_PER_100G, IMGUNIT_UNITLESS, and IMG::unit.
Referenced by imgSetEcat7MHeader().