# Custom scale of a volume

**URL:** https://discourse.vtk.org/t/custom-scale-of-a-volume/5458
**Category:** Support
**Created:** [March 29, 2021, 10:12am UTC](https://discourse.vtk.org/t/custom-scale-of-a-volume/5458 "2021-03-29T10:12:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [March 29, 2021, 10:12am UTC](https://discourse.vtk.org/t/custom-scale-of-a-volume/5458/1 "2021-03-29T10:12:34Z")

</div>

Dear All,

Are there some function in VTK that does a dynamic scale of a volume (structured image)?

The volume must be scaled not equally but obeying to a scale function that may have first, second derivatives. Or doing another way that I am not devising now.

Thanks,

Luís Gonçalves

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [March 29, 2021, 12:22pm UTC](https://discourse.vtk.org/t/custom-scale-of-a-volume/5458/2 "2021-03-29T12:22:47Z")

</div>

You can do this with [vtkBSplineTransform](https://vtk.org/doc/nightly/html/classvtkBSplineTransform.html) and [vtkImageReslice](https://vtk.org/doc/nightly/html/classvtkImageReslice.html).  
I have written a [a short paper](https://www.vtkjournal.org/browse/publication/790) describing the methods (click the “Download Paper” button in the upper-right corner).
