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