Learn R Programming

neuroim2 (version 0.8.5)

inverse_trans: Extract inverse image coordinate transformation

Description

Extract inverse image coordinate transformation

Usage

inverse_trans(x)

# S4 method for NeuroSpace inverse_trans(x)

Value

A numeric 4x4 matrix that maps from real-world coordinates back to grid coordinates.

Arguments

x

an object

Examples

Run this code
bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
itrans <- inverse_trans(bspace)
identical(trans(bspace) %*% inverse_trans(bspace), diag(4))

Run the code above in your browser using DataLab