Description Usage Arguments Value Author(s) See Also Examples
Read images into rows of a matrix.
1 | imageListToMatrix(imageList, mask)
|
imageList |
A character vector containing a list of image files to read, in order - these are image objects, not file names. |
mask |
An |
A matrix containing the masked data, the result of calling
as.numeric(image, mask)
on each input image.
Cook PA, Avants B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
imageFNList <- list.files("./", pattern = glob2rx("testView*.nii.gz"), full.names = TRUE)
imageList<-list()
for ( fn in imageFNList )
imageList<-lappend( imageList, antsImageRead( fn, 3 ) )
mask <- antsImageRead("/mnt/data/masks/brainmask.nii.gz",3)
mat <- imageListToMatrix(imageList, mask)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.