Skip to main content

Module slice_processing

Module slice_processing 

Source
Expand description

Multi-Planar Reconstruction and Volume Rendering

This module provides functions for extracting 2D slices from 3D volumetric data at arbitrary orientations (axial, coronal, sagittal, and oblique), plus intensity projection techniques (MIP and AIP) and a simple pre-integrated transfer function for direct volume rendering.

§Coordinate Convention

All arrays follow the (depth/z, height/y, width/x) axis convention used throughout scirs2-ndimage. Indices in the slice extraction functions therefore correspond to:

  • axial – constant z (depth) slice → output shape (height, width)
  • coronal – constant y (height) slice → output shape (depth, width)
  • sagittal – constant x (width) slice → output shape (depth, height)

§References

  • Engel, Hadwiger, Kniss & Rezk-Salama (2006), “Real-Time Volume Graphics”, AK Peters.
  • Levoy (1988), “Display of Surfaces from Volume Data”, IEEE CG&A 8(3):29–37.

Functions§

average_intensity_projection
Compute the Average Intensity Projection (AIP) along a given axis.
maximum_intensity_projection
Compute the Maximum Intensity Projection (MIP) along a given axis.
oblique_slice
Sample an oblique plane defined by a centre point and a normal vector.
reformat_axial
Extract an axial (constant-z) slice from a 3D volume.
reformat_coronal
Extract a coronal (constant-y) slice from a 3D volume.
reformat_sagittal
Extract a sagittal (constant-x) slice from a 3D volume.
volume_rendering_transfer_function
A simple pre-integrated transfer function for direct volume rendering.