getPixels: Get Pixels

Description Usage Arguments Value Examples

View source: R/ants_set_get.R

Description

Get pixel values from an 'antsImage'.

Usage

1
getPixels(x, i = NA, j = NA, k = NA, l = NA)

Arguments

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

Value

array of pixel values

Examples

1
2
img<-makeImage(c(10,10),rnorm(100))
pixel<-getPixels(img,i=c(1,2),j=1)

muschellij2/atropos documentation built on Oct. 11, 2018, 12:24 a.m.