Takes in a mask and an image and then returns the values
Arguments
- x
Object of class antsImage
- mask
object to subset the image. If missing, then all
values of the image are plotted.
Examples
img <- makeImage(c(10, 10), rnorm(100))
mask <- img > 0
mask_values(img, mask)
mask_values(img)