Learn R Programming

neuroim2 (version 0.8.5)

trans: Extract image coordinate transformation

Description

Extract image coordinate transformation

Get transformation matrix

Usage

trans(x)

# S4 method for MetaInfo trans(x)

# S4 method for NeuroObj trans(x)

# S4 method for NeuroSpace trans(x)

Value

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

Arguments

x

an object with a transformation

Details

This function returns a transformation that can be used to go from "grid coordinates" to "real world coordinates" in millimeters. see NeuroSpace

Examples

Run this code
bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
trans(bspace)
all.equal(dim(trans(bspace)), c(4,4))

Run the code above in your browser using DataLab