# Order of elements in a displacement field

**URL:** https://discourse.itk.org/t/order-of-elements-in-a-displacement-field/7148
**Category:** Beginner Questions
**Tags:** displacement-field
**Created:** [August 1, 2024, 12:27pm UTC](https://discourse.itk.org/t/order-of-elements-in-a-displacement-field/7148 "2024-08-01T12:27:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![koegl](https://discourse.itk.org/user_avatar/discourse.itk.org/koegl/32/3990_2.png) [@koegl](https://discourse.itk.org/u/koegl)
#### Post date: [August 1, 2024, 12:27pm UTC](https://discourse.itk.org/t/order-of-elements-in-a-displacement-field/7148/1 "2024-08-01T12:27:00Z")

</div>

Let’s say I have a displacement field in SimpleITK of the shape 100,100,100,3.

are the components of the displacement at each voxel (x,y,z) or (z,y,x)?

---

<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: [August 1, 2024, 1:19pm UTC](https://discourse.itk.org/t/order-of-elements-in-a-displacement-field/7148/2 "2024-08-01T13:19:03Z")

</div>

Hello @koegl,

The order is x,y,z. For more details on creating and working with the `DisplacementFieldTransform` see the [Transforms notebook](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Python/22_Transforms.ipynb). You can run it without installing anything locally by clicking on the “launch binder” button at the top right of the notebook.
