View source: R/hist.antsImage.R
hist.antsImage | R Documentation |
Computes and displays a histogram of the values of an image with the option for a mask.
## S3 method for class 'antsImage'
hist(x, ..., mask)
x |
Object of class |
... |
Arguments passed to |
mask |
object to subset the image. If missing, then all values of the image are plotted. |
Output of hist
img <- makeImage(c(10, 10), rnorm(100))
mask <- img > 0
hist(img)
hist(img, mask = mask)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.