Description Usage Arguments Value Author(s) Examples
ImageFileNames2ImageLists converts the input list of file names to a list containing antsImages.
1 |
x |
input file name list |
a list containing the images this : mylist<-list( img1, img2 , etcetera ) is the
Avants BB, Kandel BM
1 2 3 4 5 6 7 | dir <- paste(tempdir(), .Platform$file.sep, sep='')
img <- makeImage(c(4,4))
for (ii in 1:6) {
antsImageWrite(img, paste(dir, 'image', ii, '.nii.gz', sep=''))
}
imagenames <- list.files(dir, glob2rx('*.nii.gz'), full.names=TRUE)
images <- imageFileNames2ImageList(imagenames)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.