Get spatial point from index of an antsImage.

antsTransformIndexToPhysicalPoint(x, index)

Arguments

x

image object of S4 class antsImage to get values from.

index

image index

Value

array of pixel values

Examples

img <- makeImage(c(10, 10), rnorm(100))
pt <- antsTransformIndexToPhysicalPoint(img, c(2, 2))