Extracting 2D axial DICOM slice from 3D DICOM volume

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

https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_reformatted_image_from_a_slice_viewer_as_numpy_array - this seems to be the answer!

1 Like

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.