Enumerations | Functions
imgunit.h File Reference
#include "img.h"
#include "ecat7.h"
Include dependency graph for imgunit.h:
This graph shows which files directly or indirectly include this file:

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)

Enumeration Type Documentation

anonymous enum
Enumerator:
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 

Definition at line 18 of file imgunit.h.


Function Documentation

int imgSetUnit ( IMG img,
char *  unit 
)

Sets the unit in IMG based on specified unit string.

Returns:
Returns 0 if successful.

Definition at line 377 of file imgunit.c.

References imgUnitId(), and IMG::unit.

Here is the call graph for this function:

char* imgUnit ( int  dunit)

Return pointer to string describing the calibrated image data unit

Parameters:
dunitindex of img_unit_string[]
Returns:
pointer to 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 
)
void imgUnitFromEcat7 ( IMG img,
ECAT7_mainheader h 
)

Set IMG calibration unit based on ECAT7 main header

Parameters:
imgpointer to IMG data where unit will be set
hpointer 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().

Here is the call graph for this function:

int imgUnitId ( char *  unit)
int imgUnitToEcat6 ( IMG img)
void imgUnitToEcat7 ( IMG img,
ECAT7_mainheader h 
)