|
TPCCLIB
|
Functions for reading and writing SIF format files. More...
#include "libtpcimgio.h"Go to the source code of this file.
Functions | |
| int | sifRead (char *filename, SIF *data) |
| int | sifWrite (SIF *data, char *filename) |
| void | sifPrint (SIF *data) |
| void sifPrint | ( | SIF * | data | ) |
Prints to stdout the contents of SIF data structure.
| data | Pointer to SIF structure. |
Definition at line 234 of file sifio.c.
Referenced by imgSetWeights(), and sifAllocateWithIMG().
| int sifRead | ( | char * | filename, |
| SIF * | data ) |
Reads SIF file contents to the specified data structure.
Weights are set to 1.
| filename | SIF file name to be read. |
| data | Pointer to initiated SIF structure; any existing contents will be deleted. |
Definition at line 21 of file sifio.c.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), imgReadModelingData(), imgReadNiftiFrame(), imgReadNiftiHeader(), imgWriteAnalyze(), and imgWriteNifti().
| int sifWrite | ( | SIF * | data, |
| char * | filename ) |
Write SIF data to a standard SIF file, emptying files old contents.
| data | Pointer to SIF structure containing data to be written in file. |
| filename | File name for SIF; Set to 'stdout' to print the contents on console. File is overwritten without backup. |
Definition at line 145 of file sifio.c.
Referenced by imgWriteAnalyze(), and imgWriteNifti().