Learn R Programming

neuroim (version 0.0.6)

trans: Generic getter to extract image coordinate transformation

Description

Generic getter to extract image coordinate transformation

Usage

trans(x)
"trans"(x)
"trans"(x)
"trans"(x)
"trans"(x)

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.

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

Examples

Run this code
bspace <- BrainSpace(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