|
TPCCLIB
|
I/O routines for IMG data from/to Siemens Inveon format. More...
#include "libtpcimgio.h"Go to the source code of this file.
Functions | |
| int | imgMicropetToEcat7 (char *upetname, char *ecatfile, int verbose) |
| int | imgMicropetPETToEcat7 (FILE *fph, FILE *fpi, char *ecatfile, int verbose) |
| int | imgMicropetCTToEcat7 (FILE *fph, FILE *fpi, char *ecatfile, int verbose) |
| int | imgGetMicropetMainHeader (FILE *fp, IMG *img, float *calibration_factor, int verbose) |
| int | imgGetMicropetFrameHeader (FILE *fp, IMG *img, int frame_index, int verbose) |
| int | imgGetMicropetSIF (FILE *fp, SIF *sif) |
| int | imgGetMicropetHeader (IMG *img) |
| int | imgReadMicropetHeader (const char *dbname, IMG *img) |
| int | imgReadMicropetFrame (const char *fname, int frame_to_read, IMG *img, int frame_index) |
| int | imgReadMicropetFirstFrame (const char *fname, IMG *img) |
| int | imgReadMicropet (const char *fname, IMG *img) |
I/O routines for IMG data from/to Siemens Inveon format.
Definition in file img_upet.c.
| int imgGetMicropetFrameHeader | ( | FILE * | fp, |
| IMG * | img, | ||
| int | frame_index, | ||
| int | verbose ) |
Read frame information from MicroPET header into one-frame-IMG.
| fp | File pointer to Concorde/MicroPET header. |
| img | Pointer to IMG struct, allocated for one frame; frame information is written in frame 0. |
| frame_index | Frame index [0..tdim-1]. |
| verbose | Verbose level. |
Definition at line 457 of file img_upet.c.
Referenced by imgMicropetPETToEcat7().
| int imgGetMicropetHeader | ( | IMG * | img | ) |
Copy microPET header information from IFT structure to IMG structure.
| img | Pointer to initiated IMG struct |
Definition at line 583 of file img_upet.c.
Referenced by imgReadMicropetHeader().
| int imgGetMicropetMainHeader | ( | FILE * | fp, |
| IMG * | img, | ||
| float * | calibration_factor, | ||
| int | verbose ) |
Read main header information from MicroPET header into one-frame-IMG.
| fp | MicroPET header file pointer. |
| img | Pointer to allocated IMG structure. |
| calibration_factor | Calibration factor / Branching fraction. |
| verbose | Verbose level. |
Definition at line 300 of file img_upet.c.
Referenced by imgMicropetCTToEcat7(), and imgMicropetPETToEcat7().
| int imgGetMicropetSIF | ( | FILE * | fp, |
| SIF * | sif ) |
Read Scan Information from Concorde/MicroPET header file.
| fp | File pointer to Concorde/MicroPET header file. |
| sif | Pointer to initiated but non-allocated SIF struct; Studynr should be filled afterwards. |
Definition at line 517 of file img_upet.c.
| int imgMicropetCTToEcat7 | ( | FILE * | fph, |
| FILE * | fpi, | ||
| char * | ecatfile, | ||
| int | verbose ) |
Read MicroPET CT image and write ECAT 7 image volume.
| fph | MicroPET header file pointer |
| fpi | MicroPET image datafile pointer |
| ecatfile | ECAT image file name |
| verbose | Verbose level |
Definition at line 196 of file img_upet.c.
Referenced by imgMicropetToEcat7().
| int imgMicropetPETToEcat7 | ( | FILE * | fph, |
| FILE * | fpi, | ||
| char * | ecatfile, | ||
| int | verbose ) |
Read MicroPET static or dynamic PET image and write ECAT 7 image volume frame-by-frame.
| fph | MicroPET header file pointer. |
| fpi | MicroPET image datafile pointer. |
| ecatfile | ECAT image file name. |
| verbose | Verbose level. |
Definition at line 85 of file img_upet.c.
Referenced by imgMicropetToEcat7().
| int imgMicropetToEcat7 | ( | char * | upetname, |
| char * | ecatfile, | ||
| int | verbose ) |
Read MicroPET image and write ECAT 7 image volume frame-by-frame.
| upetname | MicroPET image filename. |
| ecatfile | ECAT image filename. |
| verbose | Verbose level |
Definition at line 15 of file img_upet.c.
| int imgReadMicropet | ( | const char * | fname, |
| IMG * | img ) |
Read the whole dynamic microPET image into IMG data structure.
Note that microPET images are often too large for 32-bit systems.
| fname | Name of microPET image (hdr or img file, or without extension) from which IMG contents will be read. |
| img | Pointer to the initiated but not preallocated IMG data. |
Definition at line 971 of file img_upet.c.
Referenced by imgRead().
| int imgReadMicropetFirstFrame | ( | const char * | fname, |
| IMG * | img ) |
Read the first frame from a microPET image into IMG data structure.
| fname | Name of microPET image (hdr or img file, or without extension) from which IMG contents will be read. |
| img | Pointer to the initiated but not preallocated IMG data. |
Definition at line 925 of file img_upet.c.
Referenced by imgReadMicropet().
| int imgReadMicropetFrame | ( | const char * | fname, |
| int | frame_to_read, | ||
| IMG * | img, | ||
| int | frame_index ) |
Read a specified frame from microPET image into preallocated IMG data structure.
MicroPET image consists of two files in the same directory: fname.hdr and fname.img. IMG header is assumed to be filled correctly before calling this function, except for information concerning separate planes and this frame, which is filled here. If frame does not exist, then and only then STATUS_NOMATRIX is returned.
| fname | Name of microPET image (hdr or img file, or without extension) from which IMG contents will be read. |
| frame_to_read | Frame which will be read [1..frameNr]. |
| img | Pointer to the IMG data. Place for the frame must be preallocated. |
| frame_index | IMG frame index [0..dimt-1] where data will be placed. |
Definition at line 819 of file img_upet.c.
Referenced by imgReadFrame(), imgReadMicropet(), and imgReadMicropetFirstFrame().
| int imgReadMicropetHeader | ( | const char * | dbname, |
| IMG * | img ) |
Fill IMG struct header information from microPET database files.
Information concerning separate frames or planes is not filled though.
| dbname | Name of microPET database, may contain filename extension |
| img | Pointer to the initiated IMG data |
Definition at line 767 of file img_upet.c.
Referenced by imgFormatDetermine(), imgReadHeader(), and imgReadMicropetFirstFrame().