|
TPCCLIB
|
Procedures for printing ECAT 6.3 header contents. More...
#include "libtpcimgio.h"Go to the source code of this file.
Functions | |
| void | ecat63PrintMainheader (ECAT63_mainheader *h, FILE *fp) |
| void | ecat63PrintImageheader (ECAT63_imageheader *h, FILE *fp) |
| void | ecat63PrintScanheader (ECAT63_scanheader *h, FILE *fp) |
| void | ecat63PrintAttnheader (ECAT63_attnheader *h, FILE *fp) |
| void | ecat63PrintNormheader (ECAT63_normheader *h, FILE *fp) |
| char * | ecat63Datatype (short int dtype) |
| char * | ecat63Unit (short int dunit) |
| void | float2parts (float *buf) |
| int | ecat6PrintSubheader (ECAT63_mainheader mh, FILE *fp, int plane, int frame, FILE *ofp) |
| char * | ecat63ScanstarttimeInt (const ECAT63_mainheader *h, char *buf) |
| Convert scan_start_time in ECAT 6.3 main header into a null-terminated string of the form YYYY-MM-DD hh:mm:ss, with length of 19 characters and the null. | |
Procedures for printing ECAT 6.3 header contents.
Definition in file ecat63p.c.
| char * ecat63Datatype | ( | short int | dtype | ) |
Return pointer to string describing the ECAT 6.3 data_type
| dtype | data type code |
Definition at line 218 of file ecat63p.c.
Referenced by ecat63PrintAttnheader(), ecat63PrintImageheader(), ecat63PrintMainheader(), ecat63PrintNormheader(), ecat63PrintScanheader(), and ecat63ReadMainheader().
| void ecat63PrintAttnheader | ( | ECAT63_attnheader * | h, |
| FILE * | fp ) |
Print ECAT 6.3 attnheader contents to specified file pointer
| h | Ecat 6.3 attenuation header |
| fp | target file pointer |
Definition at line 173 of file ecat63p.c.
Referenced by ecat63ReadAttnMatrix(), and ecat6PrintSubheader().
| void ecat63PrintImageheader | ( | ECAT63_imageheader * | h, |
| FILE * | fp ) |
Print ECAT 6.3 imageheader contents to specified file pointer
| h | Ecat 6.3 image header |
| fp | target file pointer |
Definition at line 94 of file ecat63p.c.
Referenced by ecat63ReadImageMatrix(), ecat63WriteAllImg(), and ecat6PrintSubheader().
| void ecat63PrintMainheader | ( | ECAT63_mainheader * | h, |
| FILE * | fp ) |
Print ECAT 6.3 mainheader contents to specified file pointer.
| h | Ecat 6.3 main header |
| fp | file pointer |
Definition at line 16 of file ecat63p.c.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), and imgWriteEcat63Frame().
| void ecat63PrintNormheader | ( | ECAT63_normheader * | h, |
| FILE * | fp ) |
Print ECAT 6.3 normheader contents to specified file pointer.
| h | Ecat 6.3 normalization header |
| fp | target file pointer |
Definition at line 197 of file ecat63p.c.
Referenced by ecat6PrintSubheader().
| void ecat63PrintScanheader | ( | ECAT63_scanheader * | h, |
| FILE * | fp ) |
Print ECAT 6.3 scanheader contents to specified file pointer
| h | Ecat 6.3 scan header |
| fp | target file pointer |
Definition at line 137 of file ecat63p.c.
Referenced by atnMake(), ecat63ReadScanMatrix(), ecat63WriteAllImg(), and ecat6PrintSubheader().
| char * ecat63ScanstarttimeInt | ( | const ECAT63_mainheader * | h, |
| char * | buf ) |
Convert scan_start_time in ECAT 6.3 main header into a null-terminated string of the form YYYY-MM-DD hh:mm:ss, with length of 19 characters and the null.
| h | Pointer to ECAT 6.3 main header. |
| buf | Pointer to string where the date and time will be written. It must be pre-allocated for at least 20 characters. |
Definition at line 391 of file ecat63p.c.
Referenced by imgGetEcat63MHeader(), and imgWriteEcat63Frame().
| char * ecat63Unit | ( | short int | dunit | ) |
Returns pointer to string describing the calibrated data unit (ECAT 6.3).
| dunit | data unit code |
Definition at line 243 of file ecat63p.c.
Referenced by ecat63PrintImageheader(), and ecat63PrintMainheader().
| int ecat6PrintSubheader | ( | ECAT63_mainheader | mh, |
| FILE * | fp, | ||
| int | plane, | ||
| int | frame, | ||
| FILE * | ofp ) |
Print ECAT63 subheader contents into specified file pointer.
| mh | ECAT 6.3 mainheader (not printed but needed here) |
| fp | File pointer to ECAT 6.3 file. |
| plane | ECAT 6.3 plane; enter <0 to print all planes. |
| frame | ECAT 6.3 frame; enter <0 to print all frames. |
| ofp | Output is written to this file pointer; it can be stdout |
Definition at line 293 of file ecat63p.c.
| void float2parts | ( | float * | buf | ) |
Printfs separately the sign, mantissa, and exp part of a 32-bit float, which is pointed to by the argument. Code is not optimized; do not use this in routine operations!
| buf | printed float |
Definition at line 277 of file ecat63p.c.