# slice along a random direction to get 2D slice from 3D volume

**URL:** <https://discourse.itk.org/t/slice-along-a-random-direction-to-get-2d-slice-from-3d-volume/6056>\
**Category:** Uncategorized\
**Created:** [July 11, 2023, 3:59pm UTC](https://discourse.itk.org/t/slice-along-a-random-direction-to-get-2d-slice-from-3d-volume/6056 "2023-07-11T15:59:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swetha.bsharma](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@swetha.bsharma](https://discourse.itk.org/u/swetha.bsharma)\
**Post date:** [July 11, 2023, 3:59pm UTC](https://discourse.itk.org/t/slice-along-a-random-direction-to-get-2d-slice-from-3d-volume/6056/1 "2023-07-11T15:59:34Z")

</div>

Hi,

I want to reslice a volume in a user defined direction. I have used LookatTransform in c++ version long time back ,I am not able to find it in the python version.Is there a similar transform available in python. it would be helpful to get an example  
-swetha
