vreg.Volume3D.stretch_to#

Volume3D.stretch_to(target, stretch)[source]#

Stretch and reslice to the geometry of a target volume.

Parameters:
  • target (vreg.Volume3D) – target volume

  • stretch (array-like) – 3-element stretch vector with strictly positive dimensionless values (1 = no stretch).

Returns:

transformed volume.

Return type:

vreg.Volume3D