trans {neuroim} | R Documentation |
Generic getter to extract image coordinate transformation
trans(x)
## S4 method for signature 'BrainMetaInfo'
trans(x)
## S4 method for signature 'NIfTIMetaInfo'
trans(x)
## S4 method for signature 'BrainSpace'
trans(x)
## S4 method for signature 'BrainData'
trans(x)
x |
an object with a transformation |
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
bspace <- BrainSpace(c(10,10,10), c(2,2,2))
trans(bspace)
all.equal(dim(trans(bspace)), c(4,4))