VTK  9.1.0
Classes | Macros | Typedefs
vtkNIFTIImagePrivate.h File Reference

Go to the source code of this file.

Classes

struct  nifti_1_header
 Data structure defining the fields in the nifti1 header. This binary header should be found at the beginning of a valid NIFTI-1 header file. More...
 
struct  nifti_2_header
 Data structure defining the fields in the nifti2 header. This binary header should be found at the beginning of a valid NIFTI-2 header file. More...
 

Macros

#define NIFTI_VERSION(h)
 
#define NIFTI_ONEFILE(h)   ((h).magic[1] == '+')
 
#define NIFTI_NEEDS_SWAP(h)   ((h).dim[0] < 0 || (h).dim[0] > 7)
 
#define NIFTI_TYPE_UINT8   2
 
#define NIFTI_TYPE_INT16   4
 
#define NIFTI_TYPE_INT32   8
 
#define NIFTI_TYPE_FLOAT32   16
 
#define NIFTI_TYPE_COMPLEX64   32
 
#define NIFTI_TYPE_FLOAT64   64
 
#define NIFTI_TYPE_RGB24   128
 
#define NIFTI_TYPE_INT8   256
 
#define NIFTI_TYPE_UINT16   512
 
#define NIFTI_TYPE_UINT32   768
 
#define NIFTI_TYPE_INT64   1024
 
#define NIFTI_TYPE_UINT64   1280
 
#define NIFTI_TYPE_FLOAT128   1536
 
#define NIFTI_TYPE_COMPLEX128   1792
 
#define NIFTI_TYPE_COMPLEX256   2048
 
#define NIFTI_TYPE_RGBA32   2304
 

Typedefs

typedef struct nifti_1_header nifti_1_header
 
typedef struct nifti_2_header nifti_2_header
 

Macro Definition Documentation

◆ NIFTI_TYPE_UINT8

#define NIFTI_TYPE_UINT8   2

unsigned char.

Definition at line 111 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_INT16

#define NIFTI_TYPE_INT16   4

signed short.

Definition at line 113 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_INT32

#define NIFTI_TYPE_INT32   8

signed int.

Definition at line 115 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_FLOAT32

#define NIFTI_TYPE_FLOAT32   16

32 bit float.

Definition at line 117 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_COMPLEX64

#define NIFTI_TYPE_COMPLEX64   32

64 bit complex = 2 32 bit floats.

Definition at line 119 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_FLOAT64

#define NIFTI_TYPE_FLOAT64   64

64 bit float = double.

Definition at line 121 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_RGB24

#define NIFTI_TYPE_RGB24   128

3 8 bit bytes.

Definition at line 123 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_INT8

#define NIFTI_TYPE_INT8   256

signed char.

Definition at line 125 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_UINT16

#define NIFTI_TYPE_UINT16   512

unsigned short.

Definition at line 127 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_UINT32

#define NIFTI_TYPE_UINT32   768

unsigned int.

Definition at line 129 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_INT64

#define NIFTI_TYPE_INT64   1024

signed long long.

Definition at line 131 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_UINT64

#define NIFTI_TYPE_UINT64   1280

unsigned long long.

Definition at line 133 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_FLOAT128

#define NIFTI_TYPE_FLOAT128   1536

128 bit float = long double.

Definition at line 135 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_COMPLEX128

#define NIFTI_TYPE_COMPLEX128   1792

128 bit complex = 2 64 bit floats.

Definition at line 137 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_COMPLEX256

#define NIFTI_TYPE_COMPLEX256   2048

256 bit complex = 2 128 bit floats

Definition at line 139 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_TYPE_RGBA32

#define NIFTI_TYPE_RGBA32   2304

4 8 bit bytes.

Definition at line 141 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_VERSION

#define NIFTI_VERSION (   h)
Value:
(((h).magic[0] == 'n' && (h).magic[3] == '\0' && ((h).magic[1] == 'i' || (h).magic[1] == '+') && \
((h).magic[2] >= '1' && (h).magic[2] <= '9')) \
? (h).magic[2] - '0' \
: 0)
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...

Given a nifti_1_header struct, check if it has a good magic number. Returns NIFTI version number (1..9) if magic is good, 0 if it is not.

Definition at line 152 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_ONEFILE

#define NIFTI_ONEFILE (   h)    ((h).magic[1] == '+')

Check if a nifti_1_header struct says if the data is stored in the same file or in a separate file. Returns 1 if the data is in the same file as the header, 0 if it is not.

Definition at line 163 of file vtkNIFTIImagePrivate.h.

◆ NIFTI_NEEDS_SWAP

#define NIFTI_NEEDS_SWAP (   h)    ((h).dim[0] < 0 || (h).dim[0] > 7)

Check if a nifti_1_header struct needs to be byte swapped. Returns 1 if it needs to be swapped, 0 if it does not.

Definition at line 169 of file vtkNIFTIImagePrivate.h.

Typedef Documentation

◆ nifti_1_header

Definition at line 87 of file vtkNIFTIImagePrivate.h.

◆ nifti_2_header

Definition at line 265 of file vtkNIFTIImagePrivate.h.