powered by
Get and set methods for image header information
antsGetSpacing(x)antsSetSpacing(x, spacing)antsGetOrigin(x)antsSetOrigin(x, origin)antsGetDirection(x)antsSetDirection(x, direction)
antsSetSpacing(x, spacing)
antsGetOrigin(x)
antsSetOrigin(x, origin)
antsGetDirection(x)
antsSetDirection(x, direction)
antsImage to access, of dimensionality d.
d
numeric vector of length d.
matrix of size d * d.
d * d
For get methods, vector of length d (origin, spacing) or matrix of size d * d (direction). For set methods, 0 to indicate success.
get
set
# NOT RUN { img <- makeImage(c(5,5), rnorm(25)) antsSetSpacing(img, c(2.0, 2.0)) antsSetOrigin(img, c(0.5, 0.5)) # }
Run the code above in your browser using DataLab