|
TPCCLIB
|
Procedures for reading Siemens Inveon micropET images. More...
Go to the source code of this file.
Functions | |
| int | micropetHeaderRead (const char *hdrfile, IFT *header, TPCSTATUS *status) |
| int | micropetExists (const char *filename, char *hdrfile, char *imgfile, IFT *header, TPCSTATUS *status) |
| Verify if specified file name refers to an existing microPET file. | |
Procedures for reading Siemens Inveon micropET images.
Definition in file micropetio.c.
| int micropetExists | ( | const char * | filename, |
| char * | hdrfile, | ||
| char * | imgfile, | ||
| IFT * | header, | ||
| TPCSTATUS * | status ) |
Verify if specified file name refers to an existing microPET file.
Other image formats may have similar names (*.img and *img.hdr), thus image header contents are verified here. Pixel data (*.img) is only verified to exist.
| filename | File name, either header file (*.img.hdr), image file (*.img), or base name without extensions .img, .img.hdr, .pet.img, .pet.img.hdr, .ct.img, or .ct.img.hdr |
| hdrfile | If file name refers to a microPET file, then header file name will be written in this char pointer (space needs to allocated by caller); enter NULL if not needed. |
| imgfile | If file name refers to a microPET file, then image file name will be written in this char pointer (space needs to allocated by caller); enter NULL if not needed. |
| header | Pointer to microPET header contents, which is filled in this function; any previous contents are removed; enter NULL, if not needed. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 84 of file micropetio.c.
Read microPET header and verify that it is a valid Concorde/microPET file header.
| hdrfile | Concorde/microPET header file name, with correct extension and path. |
| header | Pointer to microPET header contents, which is filled in this function; any previous contents are removed; enter NULL, if not needed. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 14 of file micropetio.c.
Referenced by micropetExists().