# Change of the sign of space directions and space origin due to interpolation / cropping

**URL:** <https://discourse.slicer.org/t/change-of-the-sign-of-space-directions-and-space-origin-due-to-interpolation-cropping/10864>\
**Category:** Support\
**Tags:** cropping\
**Created:** [March 26, 2020, 10:51pm UTC](https://discourse.slicer.org/t/change-of-the-sign-of-space-directions-and-space-origin-due-to-interpolation-cropping/10864 "2020-03-26T22:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMMPPPMMM](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@MMMPPPMMM](https://discourse.slicer.org/u/MMMPPPMMM)\
**Post date:** [March 26, 2020, 10:51pm UTC](https://discourse.slicer.org/t/change-of-the-sign-of-space-directions-and-space-origin-due-to-interpolation-cropping/10864/1 "2020-03-26T22:51:10Z")

</div>

Hello

Is it intended that the sign of space directions and space origin change due to interpolated cropping?

From the header files of the volumes:

Before interpolation / cropping:

> type: float  
> dimension: 3  
> space: left-posterior-superior  
> sizes: 59 69 162  
> space directions: **(1.26953125,0,0) (0,1.26953125,0)** (0,0,0.5)  
> kinds: domain domain domain  
> endian: little  
> encoding: gzip  
> space origin: **(262.79296875,250.09765625000003**,54.000000000000007)

After interpolation / cropping:

> type: float  
> dimension: 3  
> space: left-posterior-superior  
> sizes: 150 177 162  
> space directions: **(-0.5,0,0) (0,-0.5,0)** (0,0,0.5)  
> kinds: domain domain domain  
> endian: little  
> encoding: gzip  
> space origin: **(336.75900268554688,337.75399780273438**,53.922901153564453)

Example scene: [https://gigamove.rz.rwth-aachen.de/d/id/XjfDBwn6fC5RKF](https://gigamove.rz.rwth-aachen.de/d/id/XjfDBwn6fC5RKF)

Is it possible to avoid this?

Kind regards

---

<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:** [March 26, 2020, 11:14pm UTC](https://discourse.slicer.org/t/change-of-the-sign-of-space-directions-and-space-origin-due-to-interpolation-cropping/10864/2 "2020-03-26T23:14:03Z")

</div>

> [@MMMPPPMMM](#):
>
> Is it intended that the sign of space directions and space origin change due to interpolated cropping?

Interpolated cropping axes are not attempted to be matched to axes of the original volume, as it is not feasible in general (only when the ROI axes happen to be parallel to the original volume axes). If the image geometry is correct in physical space, it should not matter what is internal voxel coordinate system.

If you need a specific image geometry then you can create an empty reference volume with that geometry and crop&resample by using an image resample module.
