Skip to content

Function: getCenterSliceIndex()

ts
function getCenterSliceIndex(space, viewAxis): number;

Defined in: src/geometry/SliceHelpers.ts:78

Calculate the center slice index for a given view

Parameters

space

NeuroSpace

The NeuroSpace

viewAxis

AxisSet3D

The viewing orientation

Returns

number

The center slice index

Released under the MIT License.