# Data Augmentation of 3d medical images using SimpleITK

**URL:** https://discourse.itk.org/t/data-augmentation-of-3d-medical-images-using-simpleitk/1935
**Category:** Beginner Questions
**Created:** [June 1, 2019, 7:13am UTC](https://discourse.itk.org/t/data-augmentation-of-3d-medical-images-using-simpleitk/1935 "2019-06-01T07:13:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jayant\_prakash](https://discourse.itk.org/user_avatar/discourse.itk.org/jayant_prakash/32/810_2.png) [@jayant\_prakash](https://discourse.itk.org/u/jayant_prakash)
#### Post date: [June 1, 2019, 7:13am UTC](https://discourse.itk.org/t/data-augmentation-of-3d-medical-images-using-simpleitk/1935/1 "2019-06-01T07:13:53Z")

</div>

Hello everyone,

I am new to this amazing library. I am working on classification of lymph nodes using deep learning, therefore, I need to do data augmentation of 3D ROIs (of shape 32X32X32) like 3d rotation, 3d translation along a random vector, etc. I tried to use Transforms like Euler3D but it’s showing error when I use numpy 3d array. In examples Euler3d and other transforms are applied on data points.

Please help me figure out how to apply those useful transform to a 3d numpy array. [Transforms](http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/Python_html/22_Transforms.html). I think this topic will also help others in my domain.

Thanking You

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [June 2, 2019, 12:15am UTC](https://discourse.itk.org/t/data-augmentation-of-3d-medical-images-using-simpleitk/1935/2 "2019-06-02T00:15:18Z")

</div>

Hello @jayant_prakash,

You should not be working directly with augmentation of numpy arrays, rather use SimpleITK images. I believe [this Jupyter notebook](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Python/70_Data_Augmentation.ipynb) does what you want, data augmentation in 3D.

If not, please be more specific with respect to what you want to do and we’ll try our best to help.
