# How to use Resample Scalar/Vector/DWI Volume

**URL:** <https://discourse.slicer.org/t/how-to-use-resample-scalar-vector-dwi-volume/23090>\
**Category:** Support\
**Created:** [April 22, 2022, 11:06pm UTC](https://discourse.slicer.org/t/how-to-use-resample-scalar-vector-dwi-volume/23090 "2022-04-22T23:06:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Post date:** [April 22, 2022, 11:06pm UTC](https://discourse.slicer.org/t/how-to-use-resample-scalar-vector-dwi-volume/23090/1 "2022-04-22T23:06:56Z")

</div>

I’m trying to resample a volume with the “Resample Scalar/Vector/DWI Volume” module.

However, the output is cropped, so I must be doing something wrong.

The only three things that I’m changing are ‘Input volume,’ ‘Output Volume,’ and ‘Spacing’ (the last one I set to 0.5,0.5,0.5)

That’s the scene before applying the resampling:

 ![Screenshot 2022-04-22 at 19.01.47](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/f/eff20c12e673ea5e142b5d344a6bec38b872c925.jpeg)  
And that’s the scene after hitting ‘Apply’  
 ![Screenshot 2022-04-22 at 19.02.09](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/1/e19f1fa61f0c9debb47e8986bd23784011941cca.jpeg)

---

<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:** [April 23, 2022, 5:28am UTC](https://discourse.slicer.org/t/how-to-use-resample-scalar-vector-dwi-volume/23090/2 "2022-04-23T05:28:19Z")

</div>

If you use the low-level API of the module to specifying image geometry manually then you need to set all parameters (origin, spacing, axis directions).

Usually the output geometry is set by choosing a `Reference volume` - the resampled volume will have the exact same geometry as the reference volume.

If you don’t have a reference volume then you can use `Crop volume` module to compute the image geometry. The module sets the image geometry based on the ROI box, the `Spacing scale` value, and `Isotropic spacing` flag. The module uses `Resample Scalar/Vector/DWI Volume` module internally for the resampling.
