7#include "tpcclibConfig.h"
44 for(
int i=0; i<12; i++) img2->
srow[i]=img1->
srow[i];
45 for(
int i=0; i<6; i++) img2->
iop[i]=img1->
iop[i];
46 for(
int i=0; i<3; i++) img2->
ipp[i]=img1->
ipp[i];
47 for(
int i=0; i<12; i++) img2->
mt[i]=img1->
mt[i];
67 int verbose=0;
if(status!=NULL) verbose=status->
verbose;
68 if(verbose>0) {printf(
"%s(img)\n", __func__); fflush(stdout);}
79 if(verbose>1) printf(
"copying header\n");
85 if(verbose>1) printf(
"converting header\n");
125 if(
iftPut(&img->
oh,
"decay_correction", buf, 0, NULL)!=0)
int iftPutUInt(IFT *ift, const char *key, const unsigned int value, char comment, TPCSTATUS *status)
int iftPut(IFT *ift, const char *key, const char *value, char comment, TPCSTATUS *status)
int iftDuplicate(IFT *ift1, IFT *ift2)
void iftDeleteKey(IFT *ift, const char *key)
char * imgModalityDescr(imgmodality c)
char * imgContentDescr(imgcontent c)
char * imgFormatDescr(imgformat c)
char * isotopeName(int isotope_code)
void statusSet(TPCSTATUS *s, const char *func, const char *srcfile, int srcline, tpcerror error)
size_t strlcpy(char *dst, const char *src, size_t dstsize)
decaycorrection decayCorrection
char studyNr[MAX_STUDYNR_LEN+1]
int verbose
Verbose level, used by statusPrint() etc.
@ UNIT_UNKNOWN
Unknown unit.
@ TPCERROR_FAIL
General error.
@ TPCERROR_INVALID_HEADER
Invalid header contents.
@ TPCERROR_NO_DATA
File contains no data.
char * unitName(int unit_code)
#define MAX_STUDYNR_LEN
Define max study number length.
Header file for libtpcimage.
@ IMG_MODALITY_UNKNOWN
Unknown modality.
@ IMG_FORMAT_UNKNOWN
Unknown format.
@ IMG_CONTENT_UNKNOWN
Unknown data content.
@ DECAY_UNKNOWN
Not known; usually assumed that data is corrected.
@ DECAY_CORRECTED
Data is corrected for physical decay.
@ ISOTOPE_UNKNOWN
Unknown.