get.slice.indices: Compute slice indices from slice definition.

Description Usage Arguments Value

View source: R/vis_volume.R

Description

Compute slice indices from slice definition.

Usage

1
get.slice.indices(voldim, axis, slices)

Arguments

voldim

integer vector, the dimension of the volume

axis

integer, the axis

slices

slice index definition. If a vector of integers, interpreted as slice indices. If a single negative interger ‘-n', interpreted as every 'nth' slice, starting at slice 1. The character string ’all' or the value 'NULL' will be interpreted as *all slices*.

Value

integer vector, the computed slice indices. They are guaranteed to be valid indices into the volume.


fsbrain documentation built on Sept. 16, 2021, 5:07 p.m.