Description Usage Arguments Value Examples
This function creates a mask for an image using kmeans clustering.
1 | kmeansMask(x)
|
x |
x can be a vector,matrix or array. |
returns a binary vector, matrix or array of zeros and ones.
1 2 3 | file<-system.file("extdata","motion_ex.nii.gz",package="FIACH")
arr<-readNii(file)[,,,1]
mask<-kmeansMask(arr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.