The function reads IRMRI images given as NIfTI files in t1Files, inversion times and segmentation image(s) aund prepares an object class "IRdata"
readIRData(t1Files, InvTimes, segmFile, sigma =NULL, L =1, segmCodes = c("GM","WM","CSF"))
Arguments
t1Files: Names of NIfTI files containing the recorded images.
InvTimes: Corresponding inversion times
segmFile: Either a NIfTI file containing a segmentation into GM, WM and CSF or three files containing probability maps for GM, WM and CSF
sigma: Noise standard deviation
L: Effective number of coils, L=1 assumes a Rician signal distribution
segmCodes: sequence of tissue code in segmFile
Returns
A list of class "IRdata" with components - IRdata: 4D array containing the IRMRI data, first dimension refers to inversion times
InvTimes: vector of inversion times
segm: segmentation codes, 1 for CSF, 2 for GM, 3 for WM, 0 for out of brain
sigma: noise standard deviation, if not specified estimated fron CSF areas in image with largest inversion time
L: effective number of coils
References
J. Polzehl and K. Tabelow (2023), Magnetic Resonance Brain Imaging: Modeling and Data Analysis Using R, 2nd Edition, Chapter 7, Springer, Use R! Series. doi:10.1007/978-3-031-38949-8_7.
J. Polzehl and K. Tabelow (2023), Magnetic Resonance Brain Imaging - Modeling and Data Analysis Using R: Code and Data. doi:10.20347/WIAS.DATA.6.