sd | R Documentation |
Calculates the SD of an image
Overloaded SD for antsImage objects
sd(x, na.rm = FALSE, ...)
## Default S3 method:
sd(x, na.rm = FALSE, ...)
## S3 method for class 'antsImage'
sd(x, na.rm = FALSE, ..., mask = NULL)
x |
an object for which we want to compute the SD |
na.rm |
a logical value indicating whether NA should be removed |
... |
Any additional arguments to be passed to
|
mask |
is an object of class |
img <- antsImageRead(getANTsRData("r16"))
sd(img)
sd(img, mask = img > 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.