Function: getSliceOrientation()
ts
function getSliceOrientation(vol, sliceType): string;Defined in: src/volume/orthogonalSlices.ts:187
Get the anatomical orientation of a slice type for the given volume.
Parameters
vol
The volume to check orientation for
sliceType
"axial" | "coronal" | "sagittal"
Type of slice: 'axial', 'sagittal', or 'coronal'
Returns
string
Anatomical orientation string (e.g., 'LR-PA' for axial in LPI space)
Remarks
This function returns the anatomical orientation of the 2D slice axes based on the volume's coordinate system. For example:
- Axial in LPI: shows Left-Right and Posterior-Anterior
- Sagittal in LPI: shows Posterior-Anterior and Inferior-Superior
- Coronal in LPI: shows Left-Right and Inferior-Superior