My Project
imgunit.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  imgunit.h (c) 2006-2008 by Turku PET Centre
4 
5  2006-10-30 Vesa Oikonen
6  2007-02-02 VO
7  Added enum for IMG units.
8  2008-07-24 VO
9  Introduced new functions.
10 
11 ******************************************************************************/
12 #ifndef _IMGUNIT_H
13 #define _IMGUNIT_H
14 /*****************************************************************************/
15 #include "img.h"
16 #include "ecat7.h"
17 /*****************************************************************************/
18 enum {
19  /* 0 */ IMGUNIT_UNKNOWN,
20  /* 1 */ IMGUNIT_CPS,
21  /* 2 */ IMGUNIT_COUNTS,
22  /* 3 */ IMGUNIT_KBQ_PER_ML,
23  /* 4 */ IMGUNIT_SEC_KBQ_PER_ML,
24  /* 5 */ IMGUNIT_PER_SEC,
25  /* 6 */ IMGUNIT_PER_MIN,
26  /* 7 */ IMGUNIT_ML_PER_ML,
27  /* 8 */ IMGUNIT_ML_PER_DL,
30  /* 11 */ IMGUNIT_UNITLESS,
37 };
38 /*****************************************************************************/
39 extern int imgUnitId(char *unit);
40 extern void imgUnitFromEcat(IMG *img, int ecat_unit);
41 extern void imgUnitFromEcat7(IMG *img, ECAT7_mainheader *h);
42 extern int imgUnitToEcat6(IMG *img);
43 extern void imgUnitToEcat7(IMG *img, ECAT7_mainheader *h);
44 extern char *imgUnit(int dunit);
45 extern int imgSetUnit(IMG *img, char *unit);
46 /*****************************************************************************/
47 #endif
48 
IMGUNIT_CPS
@ IMGUNIT_CPS
Definition: imgunit.h:30
imgUnitId
int imgUnitId(char *unit)
Definition: imgunit.c:91
IMGUNIT_UMOL_PER_MIN_PER_100G
@ IMGUNIT_UMOL_PER_MIN_PER_100G
Definition: imgunit.h:45
imgUnitToEcat6
int imgUnitToEcat6(IMG *img)
Definition: imgunit.c:233
ecat7_mainheader
Definition: ecat7.h:103
imgUnitToEcat7
void imgUnitToEcat7(IMG *img, ECAT7_mainheader *h)
Definition: imgunit.c:266
ecat7.h
IMGUNIT_KBQ_PER_ML
@ IMGUNIT_KBQ_PER_ML
Definition: imgunit.h:32
IMGUNIT_BQ_PER_ML
@ IMGUNIT_BQ_PER_ML
Definition: imgunit.h:43
IMGUNIT_ML_PER_ML_PER_MIN
@ IMGUNIT_ML_PER_ML_PER_MIN
Definition: imgunit.h:38
IMG
Definition: img.h:156
IMGUNIT_UCI_PER_ML
@ IMGUNIT_UCI_PER_ML
Definition: imgunit.h:44
IMGUNIT_UNKNOWN
@ IMGUNIT_UNKNOWN
Definition: imgunit.h:29
IMGUNIT_NCI_PER_ML
@ IMGUNIT_NCI_PER_ML
Definition: imgunit.h:41
IMGUNIT_ML_PER_ML
@ IMGUNIT_ML_PER_ML
Definition: imgunit.h:36
IMGUNIT_PER_SEC
@ IMGUNIT_PER_SEC
Definition: imgunit.h:34
imgUnit
char * imgUnit(int dunit)
Definition: imgunit.c:365
imgUnitFromEcat7
void imgUnitFromEcat7(IMG *img, ECAT7_mainheader *h)
Definition: imgunit.c:210
imgUnitFromEcat
void imgUnitFromEcat(IMG *img, int ecat_unit)
Definition: imgunit.c:160
IMGUNIT_ML_PER_DL_PER_MIN
@ IMGUNIT_ML_PER_DL_PER_MIN
Definition: imgunit.h:39
IMGUNIT_SEC_KBQ_PER_ML
@ IMGUNIT_SEC_KBQ_PER_ML
Definition: imgunit.h:33
IMGUNIT_ML_PER_DL
@ IMGUNIT_ML_PER_DL
Definition: imgunit.h:37
IMGUNIT_MBQ_PER_ML
@ IMGUNIT_MBQ_PER_ML
Definition: imgunit.h:42
IMGUNIT_PER_MIN
@ IMGUNIT_PER_MIN
Definition: imgunit.h:35
imgSetUnit
int imgSetUnit(IMG *img, char *unit)
Definition: imgunit.c:377
IMGUNIT_COUNTS
@ IMGUNIT_COUNTS
Definition: imgunit.h:31
IMGUNIT_UNITLESS
@ IMGUNIT_UNITLESS
Definition: imgunit.h:40
IMGUNIT_MG_PER_MIN_PER_100G
@ IMGUNIT_MG_PER_MIN_PER_100G
Definition: imgunit.h:46
img.h