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. 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
supports both the NIfTI1
and
NIfTI2
file formats. NIfTI1
is the default
file format. To write NifTI data in the NIfTI2
format, use the
syntax with Name,Value
pair arguments. Specify the
Version
argument as 'NIfTI2'
.
niftiwrite(
writes the volumetric data to a file, using options specified in
V
,filename
,info
,Name,Value
)Name,Value
pairs.
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.
Version History
Introduced in R2017b