Skip to content

Function: extractAxialSlice() ​

ts
function extractAxialSlice(vol, worldPoint): NeuroSlice;

Defined in: src/volume/orthogonalSlices.ts:110

Extract an axial slice at the given world-space point.

An axial slice is a horizontal slice that shows left-right and anterior-posterior dimensions.

Parameters ​

vol ​

NeuroVol

The 3D volume to extract slice from

worldPoint ​

number[]

World-space coordinates [x, y, z] at which to extract slice

Returns ​

NeuroSlice

2D axial slice at the specified z-coordinate

Remarks ​

The axial slice is extracted along the z-axis (inferior-superior axis), showing the x-y plane (left-right and anterior-posterior).

Released under the MIT License.