92 if(unit==NULL)
return(-1);
95 else if(strcasecmp(unit,
"cnts/sec")==0)
return IMGUNIT_CPS;
96 else if(strcasecmp(unit,
"counts/sec")==0)
return IMGUNIT_CPS;
97 else if(strcasecmp(unit,
"ECAT counts/sec")==0)
return IMGUNIT_CPS;
98 else if(strcasecmp(unit,
"cps")==0)
return IMGUNIT_CPS;
253 default: ecat_unit=0;
break;
381 if(img==NULL || unit==NULL)
return(1);
382 new_unit=
imgUnitId(unit);
if(new_unit<0)
return(1-new_unit);
int imgUnitToEcat6(IMG *img)
int imgSetUnit(IMG *img, char *unit)
int imgUnitId(char *unit)
void imgUnitFromEcat(IMG *img, int ecat_unit)
static char * img_unit_string[]
void imgUnitToEcat7(IMG *img, ECAT7_mainheader *h)
char * imgUnit(int dunit)
void imgUnitFromEcat7(IMG *img, ECAT7_mainheader *h)
@ IMGUNIT_MG_PER_MIN_PER_100G
@ IMGUNIT_ML_PER_ML_PER_MIN
@ IMGUNIT_UMOL_PER_MIN_PER_100G
@ IMGUNIT_ML_PER_DL_PER_MIN
short int calibration_units
short int calibration_units_label