|
TPCCLIB
|
Procedures for NIfTI-1 images. More...
Go to the source code of this file.
Functions | |
| int | niftiExists (const char *filename, char *hdrfile, char *imgfile, char *siffile, NIFTI_DSR *header, TPCSTATUS *status) |
| int | niftiReadHeader (const char *filename, NIFTI_DSR *dsr, int verbose) |
| int | niftiWriteHeader (const char *filename, NIFTI_DSR *dsr, int verbose) |
Procedures for NIfTI-1 images.
Definition in file niftiio.c.
| int niftiExists | ( | const char * | filename, |
| char * | hdrfile, | ||
| char * | imgfile, | ||
| char * | siffile, | ||
| NIFTI_DSR * | header, | ||
| TPCSTATUS * | status ) |
Verify if specified file name is a NIfTI file.
| filename | File name, either header file, image file, or base name without extensions. |
| hdrfile | If file name refers to a NIfTI file, then header file name will be written in this char pointer (space needs to allocated by caller); If header and image are combined, then this will be the name of combined file; enter NULL if not needed. |
| imgfile | If file name refers to a NIfTI file, then image file name will be written in this char pointer (space needs to allocated by caller); If header and image are combined, then this will be the name of combined file; enter NULL if not needed. |
| siffile | If file name refers to a NIfTI file, and if SIF exists, then SIF file name will be written in this char pointer (space needs to allocated by caller); enter NULL if not needed. |
| header | Pointer to NIfTI header, which is filled in this function; enter NULL, if not needed. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 17 of file niftiio.c.
Referenced by imgRead(), and imgReadNifti().
| int niftiReadHeader | ( | const char * | filename, |
| NIFTI_DSR * | dsr, | ||
| int | verbose ) |
Read NIfTI-1 header contents, including 4-byte extender.
| filename | Name of file to read (including path and extension). |
| dsr | Pointer to previously allocated header structure. |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 146 of file niftiio.c.
Referenced by niftiExists().
| int niftiWriteHeader | ( | const char * | filename, |
| NIFTI_DSR * | dsr, | ||
| int | verbose ) |
Write NIfTI-1 header contents, including 4-byte extender.
| filename | Name of file to read (including path and extension). |
| dsr | Pointer to header structure to write. |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 445 of file niftiio.c.
Referenced by imgWriteNifti().