Learn R Programming

ANTsR (version 1.0)

imageFileNames2ImageList: Simple imageFileNames2ImageListing function.

Description

ImageFileNames2ImageLists converts the input list of file names to a list containing antsImages.

Usage

imageFileNames2ImageList(x, dim)

Arguments

x

input file name list

dim

img dimensionality (optional)

Value

a list like this : mylist<-list( img1, img2 , etcetera ) is the output ... img* are antsImages

Examples

Run this code
# NOT RUN {
  # gglb<-paste('gmView1vec*.nii.gz',sep='')
  # gfnl<-imageFileNames2ImageList( list.files(path=statdir,
  #   pattern = glob2rx(gglb),full.names = T,recursive = T) )
# }

Run the code above in your browser using DataLab