Learn R Programming

neuroim (version 0.0.6)

eachSlice: Generic functions to apply a function to each (2D) slice of an image

Description

Generic functions to apply a function to each (2D) slice of an image

Usage

eachSlice(x, FUN, withIndex, ...)
"eachSlice"(x, FUN)
"eachSlice"(x, FUN, withIndex)

Arguments

x
the object
FUN
a function taking one or two arguments (depending on the value of withIndex
withIndex
whether the index of the slice is supplied as the second argument to the function
...
additional arguments