-
Notifications
You must be signed in to change notification settings - Fork 3
Inverse transforms
This page documents transformations whose inverses can be used in either transforming images or transforming neuronal skeletons.
We recommend avoiding the use of iterative inverses when possible, since these are expensive to compute.
- Affine transforms
- Diffeomorphic (ANTs-style) transforms
- Thin-plate spline transform
- General deformation field transforms
Affine transformations are closed-form invertible, and so are fast to invert.
Examples:
- Cmtk-style affine:
cmtk_affine.xform?i
- Ants-style affine:
ants_affine.mat?i
- Imglib2-style affine:
imglib2_affine.txt?i
ANTs-style transformations specify both the forward and inverse transformation as deformation fields and so are fast to invert, because the inverse is explicitly specified.
ANTs diffeomorphic methods (SyN, BSplineSyN) generate forward and inverse deformation fields. These can be "inverted" by supplying the file containing the inverse deformation, but not using a ?i
suffix.
When using an h5 transform file that stores both the forward and inverse fields, the ?i
suffix can be used to invert
Thin plate spline transforms are specified by text (.csv) files written by BigWarp, and can be inverted using the ?i
suffix. In this case, an iterative method using gradient descent ( see details below ).
General deformation fields can be inverted using the ?i
suffix. These are specified using 3D volumetric file formats (.nii, .nrrd). In this case, an iterative method using gradient descent ( see details below ).