apply.Rd
Returns an antsImage after applying function.
apply(X, MARGIN, FUN, ...) # S3 method for default apply(X, MARGIN, FUN, ...) # S3 method for antsImage apply(X, MARGIN, FUN, ...)
X | an antsImage |
---|---|
MARGIN | a vector giving the subscripts which the function will be applied over. |
FUN | the function to be applied. |
... | optional arguments to FUN |
output is antsImage of lower dimnesion than input
#> [1] TRUE