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/*****************************************************************************/
18enum {
20 /* 1 */ IMGUNIT_CPS,
37};
38/*****************************************************************************/
39extern int imgUnitId(char *unit);
40extern void imgUnitFromEcat(IMG *img, int ecat_unit);
41extern void imgUnitFromEcat7(IMG *img, ECAT7_mainheader *h);
42extern int imgUnitToEcat6(IMG *img);
43extern void imgUnitToEcat7(IMG *img, ECAT7_mainheader *h);
44extern char *imgUnit(int dunit);
45extern int imgSetUnit(IMG *img, char *unit);
46/*****************************************************************************/
47#endif
48
int imgUnitToEcat6(IMG *img)
Definition imgunit.c:233
int imgSetUnit(IMG *img, char *unit)
Definition imgunit.c:377
char * imgUnit(int dunit)
Definition imgunit.c:365
int imgUnitId(char *unit)
Definition imgunit.c:91
void imgUnitFromEcat(IMG *img, int ecat_unit)
Definition imgunit.c:160
void imgUnitToEcat7(IMG *img, ECAT7_mainheader *h)
Definition imgunit.c:266
@ IMGUNIT_MG_PER_MIN_PER_100G
Definition imgunit.h:36
@ IMGUNIT_ML_PER_ML_PER_MIN
Definition imgunit.h:28
@ IMGUNIT_KBQ_PER_ML
Definition imgunit.h:22
@ IMGUNIT_ML_PER_ML
Definition imgunit.h:26
@ IMGUNIT_PER_SEC
Definition imgunit.h:24
@ IMGUNIT_UMOL_PER_MIN_PER_100G
Definition imgunit.h:35
@ IMGUNIT_ML_PER_DL_PER_MIN
Definition imgunit.h:29
@ IMGUNIT_UNKNOWN
Definition imgunit.h:19
@ IMGUNIT_BQ_PER_ML
Definition imgunit.h:33
@ IMGUNIT_UNITLESS
Definition imgunit.h:30
@ IMGUNIT_NCI_PER_ML
Definition imgunit.h:31
@ IMGUNIT_SEC_KBQ_PER_ML
Definition imgunit.h:23
@ IMGUNIT_UCI_PER_ML
Definition imgunit.h:34
@ IMGUNIT_CPS
Definition imgunit.h:20
@ IMGUNIT_ML_PER_DL
Definition imgunit.h:27
@ IMGUNIT_COUNTS
Definition imgunit.h:21
@ IMGUNIT_MBQ_PER_ML
Definition imgunit.h:32
@ IMGUNIT_PER_MIN
Definition imgunit.h:25
void imgUnitFromEcat7(IMG *img, ECAT7_mainheader *h)
Definition imgunit.c:210
Definition img.h:156