eachSlice-methods: Generic functions to apply a function to each (2D) slice of...

Description Usage Arguments

Description

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

Usage

1
2
3
4
5
6
7
eachSlice(x, FUN, withIndex, ...)

## S4 method for signature 'BrainVolume,'function',missing'
eachSlice(x, FUN)

## S4 method for signature 'BrainVolume,'function',logical'
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


neuroim documentation built on May 2, 2019, 1:04 p.m.