Main Page | Directories | File List | Globals | Related Pages

cpt.h File Reference

#include <dft.h>
#include <ift.h>

Go to the source code of this file.

Functions

void libcpt_printdate (FILE *fp)
int cptrnameSplit (char *rname, char *name1, char *name2, char *name3, int max_name_len)
int cptReadOne (char *cptfile, DFT *dft)
int cptWrite (DFT *dft, char *filename, int cpt_format)

Variables

int CPT_TEST
char cpterrmsg [128]


Function Documentation

int cptReadOne char *  cptfile,
DFT *  dft
 

Read TACs from CPT file into a DFT.

Returns:
Returns 0 if successful, sets cpterrmsg in case of an error.
Parameters:
cptfile  CPT filename
dft  Pointer to DFT where TACs are read; must be empty and initialized

int cptrnameSplit char *  rname,
char *  name1,
char *  name2,
char *  name3,
int  max_name_len
 

Split region name into 1-3 subparts of given max length.

Returns:
Returns the number of subparts.
Parameters:
rname  Region name to split (string is not edited)
name1  Pointer to 1st subname (anatomical region)
name2  Pointer to 2nd subname (usually hemisphere)
name3  Pointer to 3rd subname (usually image plane)
max_name_len  Max lenght of subnames, excluding terminal null

int cptWrite DFT *  dft,
char *  filename,
int  cpt_format
 

Write TAC data in CPT (Imagetool) format. If TACs are from different planes, then each plane will be saved in its own file.

Returns:
Returns 0 if successful; in case of an error, sets string cpterrmsg.
Parameters:
dft  TAC data to write
filename  CPT path and filename without extension, because this function may need to add plane number before .cpt
cpt_format  Specific CPT format: 0=default, others not yet supported

void libcpt_printdate FILE *  fp  ) 
 

Print the compilation date and time to specified FILE pointer


Variable Documentation

int CPT_TEST
 

char cpterrmsg[128]
 


Generated on Thu Dec 9 21:11:31 2004 for libCPT by  doxygen 1.3.9.1