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

View source: R/vis_volume.R

get.slice.indicesR Documentation

Compute slice indices from slice definition.

Description

Compute slice indices from slice definition.

Usage

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.


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.