trans-methods: Generic getter to extract image coordinate transformation

Description Usage Arguments Details Examples

Description

Generic getter to extract image coordinate transformation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
trans(x)

## S4 method for signature 'MetaInfo'
trans(x)

## S4 method for signature 'NIFTIMetaInfo'
trans(x)

## S4 method for signature 'NeuroObj'
trans(x)

## S4 method for signature 'NeuroSpace'
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 NeuroSpace

Examples

1
2
3
bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
trans(bspace)
all.equal(dim(trans(bspace)), c(4,4))

bbuchsbaum/neuroim2 documentation built on Nov. 14, 2019, 7:01 a.m.