kmeansMask: Binarize vector, matrix or array

Description Usage Arguments Value Examples

Description

This function creates a mask for an image using kmeans clustering.

Usage

1

Arguments

x

x can be a vector,matrix or array.

Value

returns a binary vector, matrix or array of zeros and ones.

Examples

1
2
3
file<-system.file("extdata","motion_ex.nii.gz",package="FIACH")
arr<-readNii(file)[,,,1]
mask<-kmeansMask(arr)

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to kmeansMask in FIACH...