Description Usage Arguments Details Value Author(s) Examples
View source: R/read.nii.volume.R
Read indicated volume from NIfTI files.
1 | read.nii.volume(nii.file, vol.num)
|
nii.file |
Full directory listing to a NIFTI file. File must not be gzipped. |
vol.num |
An integer indicating which volume to read. |
NIfTI files need to be unzipped before using this function or any other portions of the nifti.io package. This is necessary given the inconsistent way in which gzipped files are indexed (Some information on this is given in the documentation for the readBin function).
An array containing values from NIFTI volume.
Timothy R. Koscik <timothy-koscik@uiowa.edu>
1 2 3 4 5 | ## Not run:
example.image <- "~/example_image.nii"
image.volume <- read.nii.volume(nii.file = example.image, vol.num = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.