Skip to content.

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation » source

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

nifti1.h File Reference

Go to the source code of this file.


Data Structures

struct  nifti1_extender
struct  nifti1_extension
struct  nifti_1_header

Defines

#define DT_NONE   0
#define DT_UNKNOWN   0
#define DT_BINARY   1
#define DT_UNSIGNED_CHAR   2
#define DT_SIGNED_SHORT   4
#define DT_SIGNED_INT   8
#define DT_FLOAT   16
#define DT_COMPLEX   32
#define DT_DOUBLE   64
#define DT_RGB   128
#define DT_ALL   255
#define DT_UINT8   2
#define DT_INT16   4
#define DT_INT32   8
#define DT_FLOAT32   16
#define DT_COMPLEX64   32
#define DT_FLOAT64   64
#define DT_RGB24   128
#define DT_INT8   256
#define DT_UINT16   512
#define DT_UINT32   768
#define DT_INT64   1024
#define DT_UINT64   1280
#define DT_FLOAT128   1536
#define DT_COMPLEX128   1792
#define DT_COMPLEX256   2048
#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_INTENT_NONE   0
#define NIFTI_INTENT_CORREL   2
#define NIFTI_INTENT_TTEST   3
#define NIFTI_INTENT_FTEST   4
#define NIFTI_INTENT_ZSCORE   5
#define NIFTI_INTENT_CHISQ   6
#define NIFTI_INTENT_BETA   7
#define NIFTI_INTENT_BINOM   8
#define NIFTI_INTENT_GAMMA   9
#define NIFTI_INTENT_POISSON   10
#define NIFTI_INTENT_NORMAL   11
#define NIFTI_INTENT_FTEST_NONC   12
#define NIFTI_INTENT_CHISQ_NONC   13
#define NIFTI_INTENT_LOGISTIC   14
#define NIFTI_INTENT_LAPLACE   15
#define NIFTI_INTENT_UNIFORM   16
#define NIFTI_INTENT_TTEST_NONC   17
#define NIFTI_INTENT_WEIBULL   18
#define NIFTI_INTENT_CHI   19
#define NIFTI_INTENT_INVGAUSS   20
#define NIFTI_INTENT_EXTVAL   21
#define NIFTI_INTENT_PVAL   22
#define NIFTI_INTENT_LOGPVAL   23
#define NIFTI_INTENT_LOG10PVAL   24
#define NIFTI_FIRST_STATCODE   2
#define NIFTI_LAST_STATCODE   24
#define NIFTI_INTENT_ESTIMATE   1001
#define NIFTI_INTENT_LABEL   1002
#define NIFTI_INTENT_NEURONAME   1003
#define NIFTI_INTENT_GENMATRIX   1004
#define NIFTI_INTENT_SYMMATRIX   1005
#define NIFTI_INTENT_DISPVECT   1006
#define NIFTI_INTENT_VECTOR   1007
#define NIFTI_INTENT_POINTSET   1008
#define NIFTI_INTENT_TRIANGLE   1009
#define NIFTI_INTENT_QUATERNION   1010
#define NIFTI_INTENT_DIMLESS   1011
#define NIFTI_XFORM_UNKNOWN   0
#define NIFTI_XFORM_SCANNER_ANAT   1
#define NIFTI_XFORM_ALIGNED_ANAT   2
#define NIFTI_XFORM_TALAIRACH   3
#define NIFTI_XFORM_MNI_152   4
#define NIFTI_UNITS_UNKNOWN   0
#define NIFTI_UNITS_METER   1
#define NIFTI_UNITS_MM   2
#define NIFTI_UNITS_MICRON   3
#define NIFTI_UNITS_SEC   8
#define NIFTI_UNITS_MSEC   16
#define NIFTI_UNITS_USEC   24
#define NIFTI_UNITS_HZ   32
#define NIFTI_UNITS_PPM   40
#define NIFTI_UNITS_RADS   48
#define XYZT_TO_SPACE(xyzt)   ( (xyzt) & 0x07 )
#define XYZT_TO_TIME(xyzt)   ( (xyzt) & 0x38 )
#define SPACE_TIME_TO_XYZT(ss, tt)
#define DIM_INFO_TO_FREQ_DIM(di)   ( ((di) ) & 0x03 )
#define DIM_INFO_TO_PHASE_DIM(di)   ( ((di) >> 2) & 0x03 )
#define DIM_INFO_TO_SLICE_DIM(di)   ( ((di) >> 4) & 0x03 )
#define FPS_INTO_DIM_INFO(fd, pd, sd)
#define NIFTI_SLICE_UNKNOWN   0
#define NIFTI_SLICE_SEQ_INC   1
#define NIFTI_SLICE_SEQ_DEC   2
#define NIFTI_SLICE_ALT_INC   3
#define NIFTI_SLICE_ALT_DEC   4
#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_5TH_DIM(h)   ( ((h).dim[0]>4 && (h).dim[5]>1) ? (h).dim[5] : 0 )

Typedefs

typedef nifti_1_header nifti_1_header
typedef nifti1_extender nifti1_extender
typedef nifti1_extension nifti1_extension

Define Documentation

#define DIM_INFO_TO_FREQ_DIM (  di    )     ( ((di) ) & 0x03 )
 

Definition at line 1286 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim().

#define DIM_INFO_TO_PHASE_DIM (  di    )     ( ((di) >> 2) & 0x03 )
 

Definition at line 1287 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim().

#define DIM_INFO_TO_SLICE_DIM (  di    )     ( ((di) >> 4) & 0x03 )
 

Definition at line 1288 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim().

#define DT_ALL   255
 

Definition at line 462 of file nifti1.h.

#define DT_BINARY   1
 

Definition at line 454 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim(), nifti_datatype_string(), and nifti_is_inttype().

#define DT_COMPLEX   32
 

Definition at line 459 of file nifti1.h.

#define DT_COMPLEX128   1792
 

Definition at line 480 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_COMPLEX256   2048
 

Definition at line 481 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), and nifti_is_inttype().

#define DT_COMPLEX64   32
 

Definition at line 469 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_DOUBLE   64
 

Definition at line 460 of file nifti1.h.

#define DT_FLOAT   16
 

Definition at line 458 of file nifti1.h.

#define DT_FLOAT128   1536
 

Definition at line 479 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), and nifti_is_inttype().

#define DT_FLOAT32   16
 

Definition at line 468 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_FLOAT64   64
 

Definition at line 470 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_INT16   4
 

Definition at line 466 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_INT32   8
 

Definition at line 467 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_INT64   1024
 

Definition at line 477 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), and nifti_is_inttype().

#define DT_INT8   256
 

Definition at line 474 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_NONE   0
 

Definition at line 452 of file nifti1.h.

#define DT_RGB   128
 

Definition at line 461 of file nifti1.h.

#define DT_RGB24   128
 

Definition at line 471 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_SIGNED_INT   8
 

Definition at line 457 of file nifti1.h.

#define DT_SIGNED_SHORT   4
 

Definition at line 456 of file nifti1.h.

#define DT_UINT16   512
 

Definition at line 475 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_UINT32   768
 

Definition at line 476 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_UINT64   1280
 

Definition at line 478 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), and nifti_is_inttype().

#define DT_UINT8   2
 

Definition at line 465 of file nifti1.h.

Referenced by nifti_datatype_sizes(), nifti_datatype_string(), nifti_is_inttype(), THD_load_nifti(), and THD_open_nifti().

#define DT_UNKNOWN   0
 

Definition at line 453 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim(), nifti_datatype_string(), and nifti_is_inttype().

#define DT_UNSIGNED_CHAR   2
 

Definition at line 455 of file nifti1.h.

#define FPS_INTO_DIM_INFO (  fd,
pd,
sd    ) 
 

Value:

( ( ( ((char)(fd)) & 0x03)      ) |  \
                                      ( ( ((char)(pd)) & 0x03) << 2 ) |  \
                                      ( ( ((char)(sd)) & 0x03) << 4 )  )

Definition at line 1291 of file nifti1.h.

Referenced by nifti_convert_nim2nhdr().

#define NIFTI_5TH_DIM (  h    )     ( ((h).dim[0]>4 && (h).dim[5]>1) ? (h).dim[5] : 0 )
 

Check if a nifti_1_header struct contains a 5th (vector) dimension. Returns size of 5th dimension if > 1, returns 0 otherwise.

Definition at line 1353 of file nifti1.h.

#define NIFTI_FIRST_STATCODE   2
 

Smallest intent_code that indicates a statistic.

Definition at line 763 of file nifti1.h.

Referenced by main(), nifti_intent_code(), and THD_open_nifti().

#define NIFTI_INTENT_BETA   7
 

[C2, chap 25] Beta distribution (2 params): p1=a, p2=b. Density(x) proportional to x^(a-1) * (1-x)^(b-1).

Definition at line 665 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_BINOM   8
 

[U, chap 3] Binomial distribution (2 params): p1 = number of trials, p2 = probability per trial. Prob(x) = (p1 choose x) * p2^x * (1-p2)^(p1-x), for x=0,1,...,p1.

Definition at line 671 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_CHI   19
 

[C1, chap 18] Chi distribution (1 param): p1 = DOF. Density(x) proportional to x^(p1-1) * exp(-x^2/2) for x > 0. p1 = 1 = 'half normal' distribution p1 = 2 = Rayleigh distribution p1 = 3 = Maxwell-Boltzmann distribution.

Definition at line 734 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_CHISQ   6
 

[C1, chap 18] Chi-squared (1 param): p1 = DOF. Density(x) proportional to exp(-x/2) * x^(p1/2-1).

Definition at line 660 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_CHISQ_NONC   13
 

[C2, chap 29] Noncentral chi-squared statistic (2 params): p1 = DOF, p2 = noncentrality parameter.

Definition at line 698 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_CORREL   2
 

[C2, chap 32] Correlation coefficient R (1 param): p1 = degrees of freedom R/sqrt(1-R*R) is t-distributed with p1 DOF.

Definition at line 642 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_DIMLESS   1011
 

Dimensionless value - no params - although, as in _ESTIMATE the name of the parameter may be stored in intent_name.

Definition at line 863 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_DISPVECT   1006
 

To signify that the vector value at each voxel is to be taken as a displacement field or vector:

  • dataset must have a 5th dimension
  • intent_code must be NIFTI_INTENT_DISPVECT
  • dim[5] must be the dimensionality of the displacment vector (e.g., 3 for spatial displacement, 2 for in-plane)

Definition at line 822 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_ESTIMATE   1001
 

To signify that the value at each voxel is an estimate of some parameter, set intent_code = NIFTI_INTENT_ESTIMATE. The name of the parameter may be stored in intent_name.

Definition at line 775 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_EXTVAL   21
 

[C2, chap 22] Extreme value type I (2 params): p1 = location, p2 = scale cdf(x) = exp(-exp(-(x-p1)/p2)).

Definition at line 747 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_FTEST   4
 

[C2, chap 27] Fisher F statistic (2 params): p1 = numerator DOF, p2 = denominator DOF.

Definition at line 651 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_FTEST_NONC   12
 

[C2, chap 30] Noncentral F statistic (3 params): p1 = numerator DOF, p2 = denominator DOF, p3 = numerator noncentrality parameter.

Definition at line 693 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_GAMMA   9
 

[C1, chap 17] Gamma distribution (2 params): p1 = shape, p2 = scale. Density(x) proportional to x^(p1-1) * exp(-p2*x).

Definition at line 677 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_GENMATRIX   1004
 

To store an M x N matrix at each voxel:

  • dataset must have a 5th dimension (dim[0]=5 and dim[5]>1)
  • intent_code must be NIFTI_INTENT_GENMATRIX
  • dim[5] must be M*N
  • intent_p1 must be M (in float format)
  • intent_p2 must be N (ditto)
  • the matrix values A[i][[j] are stored in row-order:
    • A[0][0] A[0][1] ... A[0][N-1]
    • A[1][0] A[1][1] ... A[1][N-1]
    • etc., until
    • A[M-1][0] A[M-1][1] ... A[M-1][N-1]

Definition at line 800 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_INVGAUSS   20
 

[C1, chap 15] Inverse Gaussian (2 params): p1 = mu, p2 = lambda Density(x) proportional to exp(-p2*(x-p1)^2/(2*p1^2*x)) / x^3 for x > 0.

Definition at line 741 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_LABEL   1002
 

To signify that the value at each voxel is an index into some set of labels, set intent_code = NIFTI_INTENT_LABEL. The filename with the labels may stored in aux_file.

Definition at line 781 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_LAPLACE   15
 

[C2, chap 24] Laplace distribution (2 params): p1 = location, p2 = scale. Density(x) proportional to exp(-abs(x-p1)/p2).

Definition at line 710 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_LOG10PVAL   24
 

Data is log10(p-value) (no params).

Definition at line 759 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_LOGISTIC   14
 

[C2, chap 23] Logistic distribution (2 params): p1 = location, p2 = scale. Density(x) proportional to sech^2((x-p1)/(2*p2)).

Definition at line 704 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_LOGPVAL   23
 

Data is ln(p-value) (no params).

Definition at line 755 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_NEURONAME   1003
 

To signify that the value at each voxel is an index into the NeuroNames labels set, set intent_code = NIFTI_INTENT_NEURONAME.

Definition at line 786 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_NONE   0
 

default: no intention is indicated in the header.

Definition at line 614 of file nifti1.h.

#define NIFTI_INTENT_NORMAL   11
 

[C1, chap 13] Normal distribution (2 params): p1 = mean, p2 = standard deviation.

Definition at line 687 of file nifti1.h.

Referenced by nifti_intent_string(), nifti_stat2zscore(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_POINTSET   1008
 

To signify that the vector value at each voxel is really a spatial coordinate (e.g., the vertices or nodes of a surface mesh):

  • dataset must have a 5th dimension
  • intent_code must be NIFTI_INTENT_POINTSET
  • dim[0] = 5
  • dim[1] = number of points
  • dim[2] = dim[3] = dim[4] = 1
  • dim[5] must be the dimensionality of space (e.g., 3 => 3D space).
  • intent_name may describe the object these points come from (e.g., "pial", "gray/white" , "EEG", "MEG").

Definition at line 836 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_POISSON   10
 

[U, chap 4] Poisson distribution (1 param): p1 = mean. Prob(x) = exp(-p1) * p1^x / x! , for x=0,1,2,....

Definition at line 682 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_PVAL   22
 

Data is a 'p-value' (no params).

Definition at line 751 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_QUATERNION   1010
 

To signify that the vector value at each voxel is a quaternion:

  • dataset must have a 5th dimension
  • intent_code must be NIFTI_INTENT_QUATERNION
  • dim[0] = 5
  • dim[5] = 4
  • datatype should be a floating point type

Definition at line 858 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_SYMMATRIX   1005
 

To store an NxN symmetric matrix at each voxel:

  • dataset must have a 5th dimension
  • intent_code must be NIFTI_INTENT_SYMMATRIX
  • dim[5] must be N*(N+1)/2
  • intent_p1 must be N (in float format)
  • the matrix values A[i][[j] are stored in row-order:
    • A[0][0]
    • A[1][0] A[1][1]
    • A[2][0] A[2][1] A[2][2]
    • etc.: row-by-row

Definition at line 813 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_TRIANGLE   1009
 

To signify that the vector value at each voxel is really a triple of indexes (e.g., forming a triangle) from a pointset dataset:

  • dataset must have a 5th dimension
  • intent_code must be NIFTI_INTENT_TRIANGLE
  • dim[0] = 5
  • dim[1] = number of triangles
  • dim[2] = dim[3] = dim[4] = 1
  • dim[5] = 3
  • datatype should be an integer type (preferably DT_INT32)
  • the data values are indexes (0,1,...) into a pointset dataset.

Definition at line 849 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_TTEST   3
 

[C2, chap 28] Student t statistic (1 param): p1 = DOF.

Definition at line 646 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_TTEST_NONC   17
 

[C2, chap 31] Noncentral t statistic (2 params): p1 = DOF, p2 = noncentrality parameter.

Definition at line 719 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_UNIFORM   16
 

[C2, chap 26] Uniform distribution: p1 = lower end, p2 = upper end.

Definition at line 714 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_VECTOR   1007
 

Definition at line 823 of file nifti1.h.

Referenced by nifti_intent_string().

#define NIFTI_INTENT_WEIBULL   18
 

[C1, chap 21] Weibull distribution (3 params): p1 = location, p2 = scale, p3 = power. Density(x) proportional to ((x-p1)/p2)^(p3-1) * exp(-((x-p1)/p2)^p3) for x > p1.

Definition at line 726 of file nifti1.h.

Referenced by nifti_intent_string(), pq2stat(), and stat2pq().

#define NIFTI_INTENT_ZSCORE   5
 

[C1, chap 13] Standard normal (0 params): Density = N(0,1).

Definition at line 655 of file nifti1.h.

Referenced by nifti_intent_string(), nifti_stat2zscore(), pq2stat(), and stat2pq().

#define NIFTI_LAST_STATCODE   24
 

Largest intent_code that indicates a statistic.

Definition at line 767 of file nifti1.h.

Referenced by main(), nifti_intent_code(), and THD_open_nifti().

#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 1347 of file nifti1.h.

#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 1341 of file nifti1.h.

Referenced by is_nifti_file(), and nifti_convert_nhdr2nim().

#define NIFTI_SLICE_ALT_DEC   4
 

Definition at line 1299 of file nifti1.h.

Referenced by nifti_slice_string(), and THD_open_nifti().

#define NIFTI_SLICE_ALT_INC   3
 

Definition at line 1298 of file nifti1.h.

Referenced by nifti_slice_string(), and THD_open_nifti().

#define NIFTI_SLICE_SEQ_DEC   2
 

Definition at line 1297 of file nifti1.h.

Referenced by nifti_slice_string(), and THD_open_nifti().

#define NIFTI_SLICE_SEQ_INC   1
 

Definition at line 1296 of file nifti1.h.

Referenced by nifti_slice_string(), and THD_open_nifti().

#define NIFTI_SLICE_UNKNOWN   0
 

Definition at line 1295 of file nifti1.h.

#define NIFTI_TYPE_COMPLEX128   1792
 

128 bit complex = 2 64 bit floats.

Definition at line 512 of file nifti1.h.

Referenced by nifti_read_buffer().

#define NIFTI_TYPE_COMPLEX256   2048
 

256 bit complex = 2 128 bit floats

Definition at line 514 of file nifti1.h.

#define NIFTI_TYPE_COMPLEX64   32
 

64 bit complex = 2 32 bit floats.

Definition at line 494 of file nifti1.h.

Referenced by nifti_read_buffer().

#define NIFTI_TYPE_FLOAT128   1536
 

128 bit float = long double.

Definition at line 510 of file nifti1.h.

#define NIFTI_TYPE_FLOAT32   16
 

32 bit float.

Definition at line 492 of file nifti1.h.

Referenced by nifti_read_buffer(), and nifti_simple_init_nim().

#define NIFTI_TYPE_FLOAT64   64
 

64 bit float = double.

Definition at line 496 of file nifti1.h.

Referenced by nifti_read_buffer().

#define NIFTI_TYPE_INT16   4
 

signed short.

Definition at line 488 of file nifti1.h.

#define NIFTI_TYPE_INT32   8
 

signed int.

Definition at line 490 of file nifti1.h.

#define NIFTI_TYPE_INT64   1024
 

signed long long.

Definition at line 506 of file nifti1.h.

#define NIFTI_TYPE_INT8   256
 

signed char.

Definition at line 500 of file nifti1.h.

#define NIFTI_TYPE_RGB24   128
 

3 8 bit bytes.

Definition at line 498 of file nifti1.h.

#define NIFTI_TYPE_UINT16   512
 

unsigned short.

Definition at line 502 of file nifti1.h.

#define NIFTI_TYPE_UINT32   768
 

unsigned int.

Definition at line 504 of file nifti1.h.

#define NIFTI_TYPE_UINT64   1280
 

unsigned long long.

Definition at line 508 of file nifti1.h.

#define NIFTI_TYPE_UINT8   2
 

unsigned char.

Definition at line 486 of file nifti1.h.

#define NIFTI_UNITS_HZ   32
 

NIFTI code for Hertz.

Definition at line 1195 of file nifti1.h.

Referenced by nifti_units_string().

#define NIFTI_UNITS_METER   1
 

NIFTI code for meters.

Definition at line 1179 of file nifti1.h.

Referenced by nifti_units_string(), and THD_open_nifti().

#define NIFTI_UNITS_MICRON   3
 

NIFTI code for micrometers.

Definition at line 1183 of file nifti1.h.

Referenced by nifti_units_string(), and THD_open_nifti().

#define NIFTI_UNITS_MM   2
 

NIFTI code for millimeters.

Definition at line 1181 of file nifti1.h.

Referenced by nifti_units_string().

#define NIFTI_UNITS_MSEC   16
 

NIFTI code for milliseconds.

Definition at line 1189 of file nifti1.h.

Referenced by nifti_units_string(), and THD_open_nifti().

#define NIFTI_UNITS_PPM   40
 

NIFTI code for ppm.

Definition at line 1197 of file nifti1.h.

Referenced by nifti_units_string().

#define NIFTI_UNITS_RADS   48
 

NIFTI code for radians.

Definition at line 1199 of file nifti1.h.

Referenced by nifti_units_string().

#define NIFTI_UNITS_SEC   8
 

NIFTI code for seconds.

Definition at line 1187 of file nifti1.h.

Referenced by nifti_units_string().

#define NIFTI_UNITS_UNKNOWN   0
 

NIFTI code for unspecified units.

Definition at line 1175 of file nifti1.h.

#define NIFTI_UNITS_USEC   24
 

NIFTI code for microseconds.

Definition at line 1191 of file nifti1.h.

Referenced by nifti_units_string(), and THD_open_nifti().

#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 )
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 1330 of file nifti1.h.

Referenced by is_nifti_file(), and nifti_convert_nhdr2nim().

#define NIFTI_XFORM_ALIGNED_ANAT   2
 

Coordinates aligned to another file's, or to anatomical "truth".

Definition at line 1127 of file nifti1.h.

Referenced by nifti_xform_string().

#define NIFTI_XFORM_MNI_152   4
 

MNI 152 normalized coordinates.

Definition at line 1136 of file nifti1.h.

Referenced by nifti_xform_string().

#define NIFTI_XFORM_SCANNER_ANAT   1
 

Scanner-based anatomical coordinates

Definition at line 1122 of file nifti1.h.

Referenced by nifti_xform_string().

#define NIFTI_XFORM_TALAIRACH   3
 

Coordinates aligned to Talairach- Tournoux Atlas; (0,0,0)=AC, etc.

Definition at line 1132 of file nifti1.h.

Referenced by nifti_xform_string(), and THD_open_nifti().

#define NIFTI_XFORM_UNKNOWN   0
 

Arbitrary coordinates (Method 1).

Definition at line 1118 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim().

#define SPACE_TIME_TO_XYZT (  ss,
tt    ) 
 

Value:

(  (((char)(ss)) & 0x07)   \
                                   | (((char)(tt)) & 0x38) )

Definition at line 1207 of file nifti1.h.

Referenced by nifti_convert_nim2nhdr().

#define XYZT_TO_SPACE (  xyzt    )     ( (xyzt) & 0x07 )
 

Definition at line 1203 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim().

#define XYZT_TO_TIME (  xyzt    )     ( (xyzt) & 0x38 )
 

Definition at line 1204 of file nifti1.h.

Referenced by nifti_convert_nhdr2nim().


Typedef Documentation

typedef struct nifti1_extender nifti1_extender
 

Definition at line 264 of file nifti1.h.

typedef struct nifti1_extension nifti1_extension
 

Definition at line 270 of file nifti1.h.

typedef struct nifti_1_header nifti_1_header
 

Definition at line 189 of file nifti1.h.

Powered by Plone

This site conforms to the following standards: