|
TPCCLIB
|
Header file for libtpcmicropet. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include "tpcextensions.h"#include "tpcift.h"#include "tpcfileutil.h"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. | |
Header file for libtpcmicropet.
Function are not intended to support all microPET files or file properties, but only those that have been found necessary in Turku PET Centre.
Procedures in this file are not dependent on IMG struct.
Definition in file tpcmicropet.h.
|
extern |
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().