View source: R/imageListToMatrix.R
imageListToMatrix | R Documentation |
Read images into rows of a matrix.
imageListToMatrix(imageList, mask, sigma = NA, epsilon = 0)
imageList |
A character vector containing a list of image files to read, in order - these are image objects, not file names. |
mask |
An |
sigma |
smoothing operation in physical space. See |
epsilon |
threshold value determining what is included in the mask |
A matrix containing the masked data, the result of calling
as.numeric(image, mask)
on each input image.
Cook PA, Avants B, Kandel BM
matrixToImages, getMask
img <- ri(1) %>% resampleImage(c(32, 32))
imglist <- list()
nsubj <- 3
for (ii in 1:nsubj) {
imglist[[ii]] <- img
}
mask <- getMask(img)
imgmat <- imageListToMatrix(imglist, mask)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.