mask_values: Simple Value extractor for antsImage Values

Description Usage Arguments Value Examples

View source: R/hist.antsImage.R

Description

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

Usage

1
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

1
2
3
4
img = makeImage(c(10,10),rnorm(100))
mask = img > 0
mask_values(img, mask)
mask_values(img)

muschellij2/atropos documentation built on Oct. 11, 2018, 12:24 a.m.