powered by
Get index from spatial point of an 'antsImage'.
antsTransformPhysicalPointToIndex(x, point)
Image object of S4 class 'antsImage' to get values from.
image physical point
array of pixel values
# NOT RUN { img<-makeImage(c(10,10),rnorm(100)) pt<-antsTransformPhysicalPointToIndex(img,c(2,2)) # }
Run the code above in your browser using DataLab