Transformations and Smoothing
Read an NIfTI file This is example to read a NIfTI file and apply TRANSFORMATIONS AND SMOOTHING , by using this example code you must be install package oro.nifti,AnalyzeFMRI: first. Download a NIfTI file from Neurohacking_data repository library(oro.nifti) url <- “https://raw.githubusercontent.com/muschellij2/Neurohacking/master/Basic_Data_Manipulations/Kirby21/SUBJ0001-01-MPRAGE.nii.gz” destfile <- “Output_3D_File.nii.gz” name <- file.path(getwd(), destfile) download.file(url, destfile,mode=”wb”) # NIfTI is binaryfile format T1 <-…