# Extract an oblique 2D slice from a 3D volume

**URL:** https://discourse.itk.org/t/extract-an-oblique-2d-slice-from-a-3d-volume/4137
**Category:** Algorithms
**Tags:** dicom
**Created:** [May 19, 2021, 2:31pm UTC](https://discourse.itk.org/t/extract-an-oblique-2d-slice-from-a-3d-volume/4137 "2021-05-19T14:31:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ainor](https://discourse.itk.org/user_avatar/discourse.itk.org/ainor/32/2087_2.png) [@ainor](https://discourse.itk.org/u/ainor)
#### Post date: [May 19, 2021, 2:31pm UTC](https://discourse.itk.org/t/extract-an-oblique-2d-slice-from-a-3d-volume/4137/1 "2021-05-19T14:31:25Z")

</div>

Hi, can someone give me an idea on how to extract an oblique 2D slice from a 3D volume with a given thickness?

---

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [May 19, 2021, 2:35pm UTC](https://discourse.itk.org/t/extract-an-oblique-2d-slice-from-a-3d-volume/4137/2 "2021-05-19T14:35:07Z")

</div>

The resample image filter can be used to produce a 3D slice with a z-size of 1.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.itk.org/user_avatar/discourse.itk.org/lassoan/32/27_2.png) [@lassoan](https://discourse.itk.org/u/lassoan)
#### Post date: [May 20, 2021, 12:52pm UTC](https://discourse.itk.org/t/extract-an-oblique-2d-slice-from-a-3d-volume/4137/3 "2021-05-20T12:52:36Z")

</div>

Note that the resample image filter provides image of an infinitely thin slice. I don’t know if ITK has a dedicated thick slab reslice filter. If you don’t find any then you can extract a number of slices around the target location (with a few times smaller spacing than the original volume spacing) and combine them with min, max, or mean operation.

---

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [May 20, 2021, 1:00pm UTC](https://discourse.itk.org/t/extract-an-oblique-2d-slice-from-a-3d-volume/4137/4 "2021-05-20T13:00:02Z")

</div>

> [@lassoan](#):
>
> . If you don’t find any then you can extract a number of slices around the target location (with a few times smaller spacing than the original volume spacing) and combine them with min, max, or mean operation.

For this particular operation of reducing a 3D “thick” slab, there are a filters derived from “[ProjectionImageFilter](https://itk.org/Doxygen/html/classitk_1_1ProjectionImageFilter.html)” that would also reduce the dimensions to a 2D slice.

More generally, pre or post filtering with an arbitrary 3D kernel may be useful for more precise control.
