Description Usage Arguments Value Author(s) See Also Examples
Read images into rows of a matrix.
1 | imagesToMatrix(imageList, mask)
|
imageList |
A character vector containing a list of image files to read, in order. |
mask |
An |
A matrix containing the masked data, the result of calling
as.numeric(image, mask)
on each input image.
Cook PA
1 2 3 4 5 6 7 8 9 10 | ## Not run:
imageList = list.files("/mnt/data/brains", pattern = "\.nii\.gz$", full.names = TRUE)
mask = getMask("/mnt/data/masks/brainmask.nii.gz")
mat = imagesToMatrix(imageList, mask)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.