powered by
Get pixel values from an 'antsImage'.
getPixels(x, i = NA, j = NA, k = NA, l = NA)
Image object of S4 class 'antsImage' to get values from.
indices in first dimension
indices in second dimension
indices in third dimension
indices in forth dimension
array of pixel values
# NOT RUN { img<-makeImage(c(10,10),rnorm(100)) pixel<-getPixels(img,i=c(1,2),j=1) # }
Run the code above in your browser using DataLab