Description Usage Arguments Value Examples
This function creates a mask for an image using kmeans clustering.
1 | kmeansMask(x,logData=FALSE,retFit=FALSE)
|
x |
x can be a vector,matrix or array. |
logData |
Log transform data before applying the kmeans clustering. Must be TRUE or FALSE. |
retFit |
Determine whether the fit should be returned. Must be TRUE or FALSE. |
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.