write_vec | R Documentation |
Write a 4d image vector to disk
write_vec(x, file_name, format, data_type, ...)
## S4 method for signature 'ROIVec,character,missing,missing'
write_vec(x, file_name)
## S4 method for signature 'NeuroVec,character,missing,missing'
write_vec(x, file_name)
## S4 method for signature 'NeuroVec,character,character,missing'
write_vec(
x,
file_name,
format,
nbit = FALSE,
compression = 5,
chunk_dim = c(10, 10, 10, dim(x)[4])
)
## S4 method for signature 'NeuroVec,character,missing,character'
write_vec(x, file_name, data_type)
## S4 method for signature 'ROIVec,character,missing,missing'
write_vec(x, file_name)
## S4 method for signature 'NeuroVec,character,missing,missing'
write_vec(x, file_name)
## S4 method for signature 'NeuroVec,character,character,missing'
write_vec(
x,
file_name,
format,
nbit = FALSE,
compression = 5,
chunk_dim = c(10, 10, 10, dim(x)[4])
)
## S4 method for signature 'NeuroVec,character,missing,character'
write_vec(x, file_name, data_type)
x |
an image object, typically a |
file_name |
output file name. |
format |
file format string. Since "NIFTI" is the only currently supported format, this parameter can be safely ignored and omitted. |
data_type |
the numeric data type. If specified should be a |
... |
extra args |
nbit |
set nbit compression |
compression |
compression level 1 to 9 |
chunk_dim |
the dimensions of each chunk |
bvec <- NeuroVec(array(0, c(10,10,10,10)), NeuroSpace(c(10,10,10,10), c(1,1,1)))
## Not run:
write_vec(bvol, "out.nii")
write_vec(bvol, "out.nii.gz")
write_vec(bvec, "out.nii")
write_vec(bvec, "out.nii.gz")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.