The Penn immages include a brain mask and an image. We will read them in and display them:
library(penn115)
library(neurobase)
#> Loading required package: oro.nifti
#> oro.nifti 0.9.7
img = penn115::penn115_image()
mask = penn115::penn115_brain_mask()