# Slice 3D volume along a specific axis using python ITK

**URL:** https://discourse.itk.org/t/slice-3d-volume-along-a-specific-axis-using-python-itk/6005
**Category:** Beginner Questions
**Tags:** itk, dicom, python
**Created:** [June 21, 2023, 8:38am UTC](https://discourse.itk.org/t/slice-3d-volume-along-a-specific-axis-using-python-itk/6005 "2023-06-21T08:38:47Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [June 29, 2023, 2:00pm UTC](https://discourse.itk.org/t/slice-3d-volume-along-a-specific-axis-using-python-itk/6005/8 "2023-06-29T14:00:41Z")

</div>

Maybe apply this suggestion:

> [@RegionOfInterestImageFilter to extract image slice from volume](https://discourse.itk.org/t/regionofinterestimagefilter-to-extract-image-slice-from-volume/4787/6):
>
> Another option to be aware of: a) use itk.xarray\_from\_image, b) do the slicing with pandas/numpy syntax, c) then itk.image\_from\_xarray. This may be more convenient while preserving spatial metadata.

---

_[View the full topic](https://discourse.itk.org/t/slice-3d-volume-along-a-specific-axis-using-python-itk/6005)._
