niftiwrite
Write volume to file using NIfTI format
Description
niftiwrite(
writes the volumetric image data V
,filename
)V
to a file by using the
Neuroimaging Informatics Technology Initiative (NIfTI) format. By default,
niftiwrite
creates a combined NIfTI file that contains both
metadata and volumetric data, using the NIfTI1
format.
niftiwrite
names the file filename
,
adding the .nii
file extension. niftiwrite
populates the metadata using appropriate default values and volume properties, such
as size and data type.
niftiwrite(
specifies additional options using one or more name-value arguments. For example,
V
,filename
,info
,Name,Value
)niftiwrite(v,filename,"Version","NIfTI2")
writes the data in
v
to a file in the NIfTI2
file
format.
Examples
Input Arguments
References
[1] Cox, R. W., J. Ashburner, H. Breman, K. Fissell, C. Haselgrove, C. J. Holmes, J. L. Lancaster, D. E. Rex, S. M. Smith, J. B. Woodward, and S. C. Strother. "A (sort of) new image data format standard: NiFTI-1." 10th Annual Meeting of Organisation of Human Brain Mapping, Budapest, Hungary, June 2004.