|
TPCCLIB
|
Copying data from IMG to SIF and vice versa. More...
#include "libtpcimgio.h"Go to the source code of this file.
Functions | |
| int | sif2img (SIF *sif, IMG *img, int copy_header, int copy_frames, int copy_counts, int verbose) |
| int | img2sif (IMG *img, SIF *sif, int copy_header, int copy_frames, int copy_counts, int verbose) |
| int img2sif | ( | IMG * | img, |
| SIF * | sif, | ||
| int | copy_header, | ||
| int | copy_frames, | ||
| int | copy_counts, | ||
| int | verbose ) |
Set SIF contents based on data in IMG.
| img | Pointer to IMG struct from which content is copied to SIF. |
| sif | Pointer to SIF. Must be initiated with sifInit(), but SIF is allocated here if necessary. |
| copy_header | Select whether header contents are copied (1) or not copied (0) to SIF. |
| copy_frames | Select whether frame times are copied (1) or not copied (0) to SIF. |
| copy_counts | Select whether counts are copied (1) or not copied (0) to SIF, or created if they do not exist (2). |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 71 of file img_sif.c.
Referenced by imgWriteAnalyze(), and imgWriteNifti().
| int sif2img | ( | SIF * | sif, |
| IMG * | img, | ||
| int | copy_header, | ||
| int | copy_frames, | ||
| int | copy_counts, | ||
| int | verbose ) |
Set IMG contents based on data in SIF.
| sif | Pointer to SIF struct from which content is copied to IMG. |
| img | Pointer to IMG. Must be initiated with imgInit(), and allocated if frame time or count information is to be copied. |
| copy_header | Select whether SIF header contents are copied (1) or not (0) |
| copy_frames | Select whether SIF frame times are copied (1) or not (0). |
| copy_counts | Select whether SIF count contents are copied (1) or not (0). |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 13 of file img_sif.c.
Referenced by imgReadAnalyze().