8#include "tpcclibConfig.h"
29 if(h1==NULL || h2==NULL)
return(1);
165 if(h1==NULL || h2==NULL)
return(1);
213 if(h1==NULL || h2==NULL)
return(1);
254 if(h1==NULL || h2==NULL)
return(1);
285 if(h1==NULL || h2==NULL)
return(1);
308 if(
gmtime_r(&t, &scanStart)!=NULL) {
343 else if(strcasecmp(h1->
data_units,
"MBq/cc")==0)
345 else if(strcasecmp(h1->
data_units,
"MBq/mL")==0)
347 else if(strcasecmp(h1->
data_units,
"uCi/cc")==0)
349 else if(strcasecmp(h1->
data_units,
"uCi/mL")==0)
351 else if(strcasecmp(h1->
data_units,
"nCi/cc")==0)
353 else if(strcasecmp(h1->
data_units,
"Bq/cc")==0)
355 else if(strcasecmp(h1->
data_units,
"Bq/mL")==0)
357 else if(strcasecmp(h1->
data_units,
"kBq/cc")==0)
359 else if(strcasecmp(h1->
data_units,
"kBq/mL")==0)
406 if(h1==NULL || h2==NULL)
return(1);
459 if(h1==NULL || h2==NULL)
return(1);
494 if(h1==NULL || h2==NULL)
return(1);
struct tm * gmtime_r(const time_t *t, struct tm *tm)
Convert time_t to GMT struct tm.
time_t ecat63Scanstarttime(const ECAT63_mainheader *h)
Get calendar time from ECAT 6.3 main header.
int ecatCopy7_2D_to63scanheader(ECAT7_2Dscanheader *h1, ECAT63_scanheader *h2)
int ecatCopy7to63scanheader(ECAT7_scanheader *h1, ECAT63_scanheader *h2)
int ecatCopy63to7imageheader(ECAT63_imageheader *h1, ECAT7_imageheader *h2)
int ecatCopy63to7normheader(ECAT63_normheader *h1, ECAT7_2Dnormheader *h2)
int ecatCopy63to7mainheader(ECAT63_mainheader *h1, ECAT7_mainheader *h2)
int ecatCopy7to63imageheader(ECAT7_imageheader *h1, ECAT63_imageheader *h2)
int ecatCopy7to63mainheader(ECAT7_mainheader *h1, ECAT63_mainheader *h2)
int ecatCopy63to7scanheader(ECAT63_scanheader *h1, ECAT7_scanheader *h2)
Header file for ehdrconv.c.
Header file for libtpcimgio.
#define ECAT7_Head_First_Supine
Header file for libtpcmisc.
size_t strlcpy(char *dst, const char *src, size_t dstsize)
char radiopharmaceutical[32]
short int scan_start_month
short int compression_code
short int scan_start_second
short int transaxial_samp_mode
short int rot_source_speed
short int acquisition_type
short int calibration_units
short int scan_start_year
char original_file_name[20]
char study_description[32]
short int transm_source_type
short int scan_start_minute
char user_process_code[10]
short int axial_samp_mode
short int scan_start_hour
short int compression_code
float well_counter_corr_factor
char user_process_code[10]
short int angular_compression
short int calibration_units
short int acquisition_mode
short int calibration_units_label
float ecat_calibration_factor
short int transm_source_type
short int acquisition_type
char study_description[32]
short int axial_samp_mode
char radiopharmaceutical[32]
short int patient_orientation
char original_file_name[32]