Learn R Programming

ANTsR (version 0.3.3)

antsTransformPhysicalPointToIndex: Get Index from Spatial Point

Description

Get index from spatial point of an 'antsImage'.

Usage

antsTransformPhysicalPointToIndex(x, point)

Arguments

x
Image object of S4 class 'antsImage' to get values from.
point
image physical point

Value

array of pixel values

Examples

Run this code

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


Run the code above in your browser using DataLab