getPixels | R Documentation |
Get pixel values from an 'antsImage'.
getPixels(x, i = NA, j = NA, k = NA, l = NA)
x |
Image object of S4 class 'antsImage' to get values from. |
i |
indices in first dimension |
j |
indices in second dimension |
k |
indices in third dimension |
l |
indices in forth dimension |
array of pixel values
img <- makeImage(c(10, 10), rnorm(100))
pixel <- getPixels(img, i = c(1, 2), j = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.