Skip to contents

Extract a 2D slice from an image volume

Usage

slice(x, zlevel, along, orientation, ...)

# S4 method for NeuroVol,numeric,numeric,missing
slice(x, zlevel, along, orientation)

# S4 method for NeuroVol,numeric,NeuroSpace,AxisSet3D
slice(x, zlevel, along, orientation)

Arguments

x

the object

zlevel

coordinate (in voxel units) along the sliced axis

along

the axis along which to slice

orientation

the target orientation of the 2D slice

...

additional arguments