# Volume transforms without changing pixel intensity?

**URL:** <https://discourse.slicer.org/t/volume-transforms-without-changing-pixel-intensity/3727>\
**Category:** Support\
**Created:** [August 10, 2018, 7:30pm UTC](https://discourse.slicer.org/t/volume-transforms-without-changing-pixel-intensity/3727 "2018-08-10T19:30:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chen\_Lab](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@Chen\_Lab](https://discourse.slicer.org/u/Chen_Lab)\
**Post date:** [August 10, 2018, 7:30pm UTC](https://discourse.slicer.org/t/volume-transforms-without-changing-pixel-intensity/3727/1 "2018-08-10T19:30:15Z")

</div>

Hello,

I’m a new user of 3D Slicer. I have been using the Landmark Registration module to register my 3D image volume and then resample into a new image volume using the BRAINS Resample. Is there a way to resample my newly registered volume such that I am only change the pixel locations of my moving volume with changing the pixel intensity values of the pixels being moved?

Thanks.

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [August 10, 2018, 7:33pm UTC](https://discourse.slicer.org/t/volume-transforms-without-changing-pixel-intensity/3727/2 "2018-08-10T19:33:54Z")

</div>

If you place your volume under a linear transform, and then harden the transform (“Data” module, “Transform hierarchy” tab, select the volume and right mouse click to see the context menu), then the voxel values or raster of the volume will not change.

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

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 10, 2018, 7:44pm UTC](https://discourse.slicer.org/t/volume-transforms-without-changing-pixel-intensity/3727/3 "2018-08-10T19:44:45Z")

</div>

If you end up resampling, then you can use the nearest neighbor option and this will choose one of the pixel values from the moving image at each location in the resampled image. This may be what you want, but the result will be much “blockier” which is why the usual mode is to do some kind of averaging.
