# Extracting 2D axial DICOM slice from 3D DICOM volume

**URL:** https://discourse.slicer.org/t/extracting-2d-axial-dicom-slice-from-3d-dicom-volume/11907
**Category:** Support
**Created:** [June 6, 2020, 7:50pm UTC](https://discourse.slicer.org/t/extracting-2d-axial-dicom-slice-from-3d-dicom-volume/11907 "2020-06-06T19:50:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vincent\_C](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vincent_c/32/5759_2.png) [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)
#### Post date: [June 6, 2020, 7:50pm UTC](https://discourse.slicer.org/t/extracting-2d-axial-dicom-slice-from-3d-dicom-volume/11907/1 "2020-06-06T19:50:01Z")

</div>

Hi all,

I want to extract a single 2D axial DICOM slice from a 3D DICOM volume as a separate node. It seems this topic was covered before here [Extraction of 2D Image from 3D Volume](https://discourse.slicer.org/t/extraction-of-2d-image-from-3d-volume/7674). Indeed this method works, but I am wondering if it is possible to “split” the volume to achieve a single 2D slice without having a segment define where the volume will split. Can I extract a single slice as a scalar volume?

Thanks

---

<div class="post-metadata">

### Author: ![Vincent\_C](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vincent_c/32/5759_2.png) [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)
#### Post date: [June 6, 2020, 8:13pm UTC](https://discourse.slicer.org/t/extracting-2d-axial-dicom-slice-from-3d-dicom-volume/11907/2 "2020-06-06T20:13:42Z")

</div>

[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get\_reformatted\_image\_from\_a\_slice\_viewer\_as\_numpy\_array](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_reformatted_image_from_a_slice_viewer_as_numpy_array) - this seems to be the answer!

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [June 6, 2020, 8:46pm UTC](https://discourse.slicer.org/t/extracting-2d-axial-dicom-slice-from-3d-dicom-volume/11907/3 "2020-06-06T20:46:04Z")

</div>

Also note that if you don’t need reformatted slices then you can simply use numpy indexing to retrieve a slice, as shown in this [example](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_axial_slice_as_numpy_array).
