hist.antsImage: Histogram of Values in an Image

Description Usage Arguments Value Examples

View source: R/hist.antsImage.R

Description

Computes and displays a histogram of the values of an image with the option for a mask.

Usage

1
2
## S3 method for class 'antsImage'
hist(x, ..., mask)

Arguments

x

Object of class antsImage

...

Arguments passed to hist.default

mask

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

Value

Output of hist

Examples

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

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