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,
24  /* 5 */ IMGUNIT_PER_SEC,
25  /* 6 */ IMGUNIT_PER_MIN,
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 
void imgUnitToEcat7(IMG *img, ECAT7_mainheader *h)
Definition: imgunit.c:266
Definition: img.h:156
int imgUnitId(char *unit)
Definition: imgunit.c:91
int imgUnitToEcat6(IMG *img)
Definition: imgunit.c:233
void imgUnitFromEcat7(IMG *img, ECAT7_mainheader *h)
Definition: imgunit.c:210
void imgUnitFromEcat(IMG *img, int ecat_unit)
Definition: imgunit.c:160
int imgSetUnit(IMG *img, char *unit)
Definition: imgunit.c:377
char * imgUnit(int dunit)
Definition: imgunit.c:365