Takes in a mask and an image and then returns the values

mask_values(x, mask)

Arguments

x

Object of class antsImage

mask

object to subset the image. If missing, then all values of the image are plotted.

Value

Vector of values

Examples

img = makeImage(c(10,10),rnorm(100)) mask = img > 0 mask_values(img, mask) mask_values(img)