Image3DSlices

Image3DSlices[image]

gives a list of 2D images corresponding to the slices in the Image3D object image.

Image3DSlices[image,n]

gives the n^(th) slice as a 2D image.

Image3DSlices[image,{s1,s2,}]

extracts the specified slices si.

Image3DSlices[image,sm;;sn]

extracts slices sm through sn.

Image3DSlices[image,,d]

takes slices in dimension d.

Details

  • Image3DSlices works with images containing any number of color channels.
  • Image3DSlices[image] is equivalent to Image3DSlices[image,All,1].
  • In Image3DSlices[image,{s1,s2,},d], the first dimension corresponds to image slices running from top to bottom, the second dimension corresponds to the rows running from back to front, and the third dimension corresponds to columns running from left to right.
  • Image3D[Image3DSlices[image]] is effectively equivalent to image.

Examples

open allclose all

Basic Examples  (1)

Slices of a 3D image:

Scope  (4)

Extract a slice of a 3D image:

Extract multiple slices:

Extract a span of slices:

Slices in the first dimension, running from top to bottom:

Slices in the second dimension, running from back to front:

Slices in the third dimension, running from left to right:

Applications  (4)

Visualize inside of the volumes for hidden details:

Extract a property of each slice:

Apply morphological erosion to 2D slices of a 3D image:

Maximum intensity projection (MIP) of slices of a 3D image:

Properties & Relations  (3)

Extract slices of 3D images using ImageData:

Image3DSlices is faster and requires less memory:

Compute the mean of all slices:

Image3DProjection can also perform mean intensity projection:

Partition a 3D image along a single dimension:

ImagePartition provides a more optimized solution:

Interactive Examples  (1)

3D image slicer:

Introduced in 2012
 (9.0)
 |
Updated in 2016
 (10.4)