# \donttest{
if (have_fsl()) {
file = "~/Downloads/sample_T1_input.nii.gz"
if (file.exists(file)) {
res = quickshear_deface_image(file)
brain_mask = fslbet(file) > 0
mask = get_quickshear_mask(brain_mask)
image = fslmask(file, mask)
}
}
# }
Run the code above in your browser using DataLab