# How can I view displacement field in 3D?

**URL:** <https://discourse.slicer.org/t/how-can-i-view-displacement-field-in-3d/29228>\
**Category:** Support\
**Tags:** transforms\
**Created:** [May 1, 2023, 1:38pm UTC](https://discourse.slicer.org/t/how-can-i-view-displacement-field-in-3d/29228 "2023-05-01T13:38:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/luna/32/11116_2.png) [@Luna](https://discourse.slicer.org/u/Luna)\
**Post date:** [May 1, 2023, 1:38pm UTC](https://discourse.slicer.org/t/how-can-i-view-displacement-field-in-3d/29228/1 "2023-05-01T13:38:51Z")

</div>

I have two questions

1. I have an nrrd file of my displacement field in 3D which I want to view. I managed to view it in 2D in transforms module but I couldn’t find a way to view it in 3D. How can I view it in 3D?
2. Is there a way to view the displacement field in glyphs not for every pixel but for example every 20 or 40 pixels?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 1, 2023, 10:29pm UTC](https://discourse.slicer.org/t/how-can-i-view-displacement-field-in-3d/29228/2 "2023-05-01T22:29:28Z")

</div>

> [@Luna](#):
>
> I have an nrrd file of my displacement field in 3D which I want to view. I managed to view it in 2D in transforms module but I couldn’t find a way to view it in 3D. How can I view it in 3D?

When you load the displacement field, choose “Transform” in the description column. You can then use [transform visualization to view the displacement field](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html#display).

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/b/dbd5a0b3f1c3290ec9a903c1f0b86a2d5e722e65.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/e/aed000637548569f05963c852eabf23ecc109d77.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/1/11470577e86881987eaa20cdc053e4bfddc6fcd0.png)

> [@Luna](#):
>
> Is there a way to view the displacement field in glyphs not for every pixel but for example every 20 or 40 pixels?

You can actually do even better: specify the sampling density in physical units, so you don’t need to worry about what was the resolution of the displacement field. You can also change the scale, style, coloring, etc. You can display specific points, slices or volumetric regions as glyphs (or grids, or isosurfaces).

---

<div class="post-metadata">

**Author:** ![G\_Tom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/g_tom/32/68257_2.png) [@G\_Tom](https://discourse.slicer.org/u/G_Tom)\
**Post date:** [December 6, 2023, 7:46pm UTC](https://discourse.slicer.org/t/how-can-i-view-displacement-field-in-3d/29228/3 "2023-12-06T19:46:47Z")

</div>

I am just wondering, how did you get the warped grid in the last image ? I want to generate a grid like this and plot coordinates of the points of intersection.  
How can I achieve this ?

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [December 6, 2023, 8:00pm UTC](https://discourse.slicer.org/t/how-can-i-view-displacement-field-in-3d/29228/4 "2023-12-06T20:00:18Z")

</div>

The warped grid is a visualization option for the transform. In the Transforms module, open Display → Visualization and select Grid instead of Glyph.
