The Penn immages include a brain mask and an image. We will read them in and display them:
library(penn115)
#> Registered S3 method overwritten by 'R.oo':
#> method from
#> throw.default R.methodsS3
library(neurobase)
#> Loading required package: oro.nifti
#> oro.nifti 0.10.1
img = penn115::penn115_image()
mask = penn115::penn115_brain_mask()