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


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


extracts the specified slices si.


extracts slices sm through sn.


takes slices in dimension d.


  • 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.


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:

Wolfram Research (2012), Image3DSlices, Wolfram Language function, (updated 2016).


Wolfram Research (2012), Image3DSlices, Wolfram Language function, (updated 2016).


@misc{reference.wolfram_2020_image3dslices, author="Wolfram Research", title="{Image3DSlices}", year="2016", howpublished="\url{}", note=[Accessed: 02-March-2021 ]}


@online{reference.wolfram_2020_image3dslices, organization={Wolfram Research}, title={Image3DSlices}, year={2016}, url={}, note=[Accessed: 02-March-2021 ]}


Wolfram Language. 2012. "Image3DSlices." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016.


Wolfram Language. (2012). Image3DSlices. Wolfram Language & System Documentation Center. Retrieved from