# Matching volume size with linear transformation

**URL:** <https://discourse.slicer.org/t/matching-volume-size-with-linear-transformation/10406>\
**Category:** Support\
**Tags:** transforms\
**Created:** [February 23, 2020, 10:12pm UTC](https://discourse.slicer.org/t/matching-volume-size-with-linear-transformation/10406 "2020-02-23T22:12:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbutler808](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mbutler808](https://discourse.slicer.org/u/mbutler808)\
**Post date:** [February 23, 2020, 10:12pm UTC](https://discourse.slicer.org/t/matching-volume-size-with-linear-transformation/10406/1 "2020-02-23T22:12:44Z")

</div>

I have uCTscans of small frogs and we are trying to segment the hindlimb muscles for a study on locomotion. They were scanned in arbitrary orientations, which make it hard to identify the muscles. I would like to transform and save the volume in a standard orientation.

I have been able to apply a linear transform, however, when I try to resample the original volume with _Resample scalar/vector/DWI volume_ while applying the linear transform, the resulting volume is now cropped.

It looks like I transformed the long, medium, and short axes of the volume but the volume remained defined in its original coordinate space, clipping part of the specimen. How do I rotate and resample the volume preserving the volume needed to capture the entire specimen? I tried entering Manual:size values (I assumed it was pixel numbers), but it did not make a difference. I did not change the spacing leaving it as 0,0,0.

Thank you for your help!  
Marguerite

---

<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:** [February 24, 2020, 3:30am UTC](https://discourse.slicer.org/t/matching-volume-size-with-linear-transformation/10406/2 "2020-02-24T03:30:39Z")

</div>

I would recommend to use “Crop volume” module for this. You can translate either the ROI node or the volume.
