# Image with hardened transform returns to original when opened outside Slicer

**URL:** <https://discourse.slicer.org/t/image-with-hardened-transform-returns-to-original-when-opened-outside-slicer/431>\
**Category:** Support\
**Tags:** transforms, file-export\
**Created:** [June 2, 2017, 7:16pm UTC](https://discourse.slicer.org/t/image-with-hardened-transform-returns-to-original-when-opened-outside-slicer/431 "2017-06-02T19:16:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 2, 2017, 7:57pm UTC](https://discourse.slicer.org/t/image-with-hardened-transform-returns-to-original-when-opened-outside-slicer/431/2 "2017-06-02T19:57:51Z")

</div>

Hi Jessica -

If the external program (e.g. matlab) is ignoring the transformmatrix field of the metaheader then what you are seeing is expected behavior for the harden step.

Instead of Resample Scalar Volume, which only changes the pixel data, you can use Resample Image (BRAINS) which allows you to set the input image, the transform, and a reference image that defines the output pixel grid that you want. Then the pixel matrix should work in matlab.

Hope that helps,  
Steve

---

_[View the full topic](https://discourse.slicer.org/t/image-with-hardened-transform-returns-to-original-when-opened-outside-slicer/431)._
