Process FLAIR Neuroimages and Register to EVE Brain Template
eve_Fl.Rd
This function processes FLAIR (Fluid-Attenuated Inversion Recovery) neuroimages for better lesion detection, especially in the periventricular area by suppressing the CSF signal. It involves steps such as reading the image, reorienting, bias correction using N4, brain extraction, registration to the EVE template, and tissue segmentation. It finally calculates the intracranial volume and outputs the data.
Arguments
- fpath
Character string specifying the path to the FLAIR image file. The file should be in NIFTI file format (.nii.gz).
- outpath
Character string specifying the output directory where the processed data is saved.
- fsl_path
Character string specifying the path to the FSL software on the system.
- fsl_outputtype
Character string specifying the type of output file format for FSL; defaults to "NIFTI_GZ".
Value
Returns a list containing three elements: intensities
, tissues
, and brain_volume_cm3
.
Each element corresponds to the array of intensities, the segmented tissue data, and the calculated brain volumes,
respectively. The function also saves these results as an .Rdata file at the specified output path.
Details
The function uses specific FSL tools for image processing steps such as reorientation to standard space,
bias correction with N4 method from ANTsR, and brain extraction using a robust method from extrantsr
.
Segmentation into different tissue types (CSF, grey matter, and white matter) is performed using FSL's FAST tool.
Volumes are calculated based on the segmented tissues.