sd: SD generic

View source: R/zzz_Summary.R

sdR Documentation

SD generic

Description

Calculates the SD of an image

Overloaded SD for antsImage objects

Usage

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)

Arguments

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 sd

mask

is an object of class antsImage

Examples

img <- antsImageRead(getANTsRData("r16"))
sd(img)
sd(img, mask = img > 0)

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