powered by
ImageFileNames2ImageLists converts the input list of file names to a list containing antsImages.
imageFileNames2ImageList(x, dim)
input file name list
img dimensionality (optional)
a list like this : mylist<-list( img1, img2 , etcetera ) is the output ... img* are antsImages
# 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