---
name: "WarpTensorImageMultiTransform"
section: "1"
platform: "linux"
package: "ants"
version: "2.1.0-5"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/WarpTensorImageMultiTransform"
---

# WarpTensorImageMultiTransform(1)

part of ANTS registration suite

## NAME

WarpTensorImageMultiTransform - part of ANTS registration suite

## DESCRIPTION

WarpImageMultiTransform ImageDimension moving\_image output\_image \[-R reference\_image \| **--tightest-bounding-box\]** (**--reslice-by-header**) \[--use-NN (use Nearest Neighbor Interpolator)\]\[--ANTS-prefix prefix-name \| **--ANTS-prefix-invert** prefix-name\] {\[deformation\_field \| \[-i\] affine\_transform\_txt \| **--Id** \| \[-i\] **--moving-image-header** / **-mh**  \| \[-i\] **--reference-image-header** / **-rh\]**} Example: Reslice the image: WarpImageMultiTransform 3 Imov.nii Iout.nii **--tightest-bounding-box** **--reslice-by-header** Reslice the image to a reference image: WarpImageMultiTransform 3 Imov.nii Iout.nii **-R** Iref.nii **--tightest-bounding-box** **--reslice-by-header** Note: **-i** will use the inversion of the following affine transform. **--tightest-bounding-box** will be overrided by **-R** reference\_image if given. It computes the tightest bounding box using all the affine transformations. **--Id** uses the identity transform. **--moving-image-header** or **-mh** in short will use the orientation header of the moving image file. This is typically not used with **--reslice-by-header**. **--reference-image-header** or **-rh** in short will use the orientation header of the fixed image file. This is typically not used with **--reslice-by-header**. **--reslice-by-header** uses the orientation matrix and origin encoded in the image file header. It can be used together with **-R**. This is typically not used together with any other transforms. **--reslice-by-header** is equvalient to **-i** **-mh**, or **-fh** **-i** **-mh** if used together with **-R**.

For ANTS users: To use with the deformation field and the affine transform files generated from ANTS: **--ANTS-prefix** prefix-name **--ANTS-prefix-invert** prefix-name Example: 3 moving\_image output\_image **-R** reference\_image **--ANTS-prefix** abcd.nii.gz Applies abcdWarpxvec.nii.gz/abcdWarpyvec.nii.gz/abcdWarpzvec.nii.gz and then abcdAffine.txt. Use this with ANTS to get the moving\_image warped into the reference\_image domain. 3 reference\_image output\_image **-R** moving\_image **--ANTS-prefix-invert** abcd.nii.gz **--ANTS-invert** Applies the inversion of abcdAffine.txt and then abcdInverseWarpxvec.nii.gz/abcdInverseWarpyvec.nii.gz/abcdInverseWarpzvec.nii.gz. Use this with ANTS to get the reference\_image warped into the moving\_image domain. Note: prefix name "abcd" without any extension will use ".nii.gz" by default
