Description Usage Arguments Value See Also Examples
Creates a complete list that can be used to write a .hdr file or the header part of a .nii file
1 2 3 4 5 6 7 8 9 10 11 | f.complete.hdr.nifti.list.create(file,dim.info=character(1),dim,
intent.p1=single(1),intent.p2=single(1),intent.p3=single(1),intent.code=integer(1),
datatype=integer(1),bitpix=integer(1),slice.start=integer(1),pixdim=single(8),
scl.slope=single(1),scl.inter=single(1),slice.end=integer(1),slice.code=character(1),
xyzt.units=character(1),cal.max=single(1),cal.min=single(1),slice.duration=single(1),
toffset=single(1),descrip=paste(rep(" ", 80), sep = "", collapse = ""),
aux.file=paste(rep(" ", 24), sep = "", collapse =""),qform.code=integer(1),
sform.code=integer(1),quatern.b=single(1),quatern.c=single(1),quatern.d=single(1),
qoffset.x=single(1),qoffset.y=single(1),qoffset.z=single(1),srow.x=single(4),
srow.y=single(4),srow.z=single(4),
intent.name=paste(rep(" ", 16), sep = "", collapse = ""))
|
file |
The .hdr filename. If file extension is ".nii", this will create a header file for a ".nii" NIFTI file, else for a .hdr/.img NIFTI pair |
dim.info |
MRI slice ordering: This field encode which spatial
dimension (1=x, 2=y, or 3=z) corresponds to which acquisition dimension
for MRI data. In fact, it contains three informations: |
dim |
vector (of length 8) of image dimensions. |
intent.p1 |
1st intent parameter: first auxiliary parameter for a
possible statistical distribution specified in |
intent.p2 |
2nd intent parameter: second auxiliary parameter for a
possible statistical distribution specified in |
intent.p3 |
3rd intent parameter: third auxiliary parameter for a
possible statistical distribution specified in |
intent.code |
NIFTI INTENT code: if 0, this is a raw dataset; if in
range 2...24, this indicates that the numbers in the dataset should be interpreted
as being drawn from a given distribution. Most such distributions have
auxiliary parameters (given with |
datatype |
integer indicator of data storage type for each voxel. This could be 2 (unsigned char), 4 (signed short), 8 (signed int), 16 (32 bit float), 32 (64 bit complex = two 32 bit floats), 64 (64 bit float = double), 128 (3 8 bit bytes), 256 (signed char), 512 (unsigned short), 768 (unsigned int), 1024 (signed long long), 1280 (unsigned long long), 1536 (128 bit float = long double), 1792 (128 bit complex = 2 64 bit floats), 2048 (256 bit complex = 2 128 bit floats). |
bitpix |
the number of bits per voxel. This field MUST correspond with
the datatype field. The total number of bytes in the image data is
|
slice.start |
Indicates the start of the slice acquisition pattern, when |
pixdim |
vector (of length 8). Grid spacings. When reading a
NIFTI-1 header, |
scl.slope |
Data scaling: If the |
scl.inter |
Data scaling: offset. Idem above. |
slice.end |
Indicates the end of the slice acquisition pattern, when |
slice.code |
Slice timing order. If this is nonzero, AND if |
xyzt.units |
Units of |
cal.max |
Maximum display intensity (white) corresponds to dataset
value |
cal.min |
Minimum display intensity (black) corresponds to dataset
value |
slice.duration |
Time for 1 slice. If this is positive, AND if |
toffset |
Time axis shift: The |
descrip |
char[80]. This field may contain any text you like |
aux.file |
char[24]. This field is used to store an auxiliary filename. |
qform.code |
NIFTI code (in 0, ... ,4). 0: Arbitrary coordinates; 1: Scanner-based anatomical coordinates; 2: Coordinates aligned to another file's, or to anatomical "truth" (coregistration); 3: Coordinates aligned to Talairach-Tournoux Atlas; 4: MNI 152 normalized coordinates |
sform.code |
NIFTI code (in 0, ... ,4) with the same meaning as
|
quatern.b |
Quaternion b param. These b,c,d quaternion parameters
encode a rotation matrix used when |
quatern.c |
Quaternion c param |
quatern.d |
Quaternion d param |
qoffset.x |
Quaternion x shift. If the (0020,0032) DICOM attribute is extracted into (px,py,pz), then
|
qoffset.y |
Quaternion y shift |
qoffset.z |
Quaternion z shift |
srow.x |
vector of length 4. 1st row affine transform. These |
srow.y |
vector of length 4. 2nd row affine transform |
srow.z |
vector of length 4. 3rd row affine transform |
intent.name |
char[16]. name or meaning of data. If no data name is implied or needed, |
Returns a list of all the fields needed to create a .hdr file (see the function code for details).
f.basic.hdr.nifti.list.create
,
f.write.list.to.hdr.nifti
,
f.nifti.file.summary
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.