R: Invert an affine matrix

invertAffine {RNiftyReg} | R Documentation

## Invert an affine matrix

### Description

This function is used to invert an affine matrix. It is a wrapper around `solve`, which additionally sets appropriate attributes.

### Usage

    invertAffine(affine)

### Arguments

`affine` | An existing 4x4 affine matrix.

### Value

The inverted affine matrix.

### Author(s)

Jon Clayden <code@clayden.org>

### See Also

`solve`

### Examples

    affine <- readAffine(system.file("extdata","affine.txt",package="RNiftyReg"))
    print(affine)
    print(invertAffine(affine))

[Package RNiftyReg version 2.6.0 Index]