Learn R Programming

ANTsR (version 1.0)

antsTransformIndexToPhysicalPoint: Get Spatial Point from Index

Description

Get spatial point from index of an antsImage.

Usage

antsTransformIndexToPhysicalPoint(x, index)

Arguments

x

image object of S4 class antsImage to get values from.

index

image index

Value

array of pixel values

Examples

Run this code
# NOT RUN {
img <- makeImage(c(10,10),rnorm(100))
pt <- antsTransformIndexToPhysicalPoint(img, c(2,2))
# }

Run the code above in your browser using DataLab