read_meta_info | R Documentation |
FileFormat
instance.These methods read meta information from image files based on their format (NIFTI or AFNI).
read_meta_info(x, file_name)
## S4 method for signature 'NIFTIFormat'
read_meta_info(x, file_name)
## S4 method for signature 'AFNIFormat'
read_meta_info(x, file_name)
x |
A FileFormat object (either NIFTIFormat or AFNIFormat). |
file_name |
A character string representing the file name to read meta information from. |
These methods use format-specific functions to read the header information and create the appropriate meta information object. The '.read_meta_info' helper function is used internally to streamline the process for both formats.
An object of class NIFTIMetaInfo or AFNIMetaInfo, depending on the input format.
FileFormat-class
, NIFTIFormat-class
, AFNIFormat-class
,
NIFTIMetaInfo-class
, AFNIMetaInfo-class
## Not run:
# For NIFTI format
nifti_format <- new("NIFTIFormat")
nifti_meta <- read_meta_info(nifti_format, "brain_scan.nii")
# For AFNI format
afni_format <- new("AFNIFormat")
afni_meta <- read_meta_info(afni_format, "brain_scan+orig.HEAD")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.