density.antsImage: Density of Values in an Image

View source: R/hist.antsImage.R

density.antsImageR Documentation

Density of Values in an Image

Description

Computes the density of values of an image with the option for a mask.

Usage

## S3 method for class 'antsImage'
density(x, ..., mask)

Arguments

x

Object of class antsImage

...

Arguments passed to density.default

mask

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

Value

Output of density

Examples

img <- makeImage(c(10, 10), rnorm(100))
mask <- img > 0
density(img, mask = mask)

stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.