kmeans

Synopsis

kmeans <input> <K> <output> [options]

Description

Runs k-means clustering at the input image with the provided K number of classes. e.g. kmeans input.nii.gz 10 output.nii.gz

Input options

-mask <mask>

run k-means inside the provided mask

-replicates <number>

number of random initializations, the best is retained (default: 10).

-iterations <number>

maximum number of iterations per replicate (default: 100).

-saveprobs <basename>

output probabilities. These are computed by initialising a Gaussian distribution for each cluster with the mean and variance of the points.

-blurprobs <sigma>

The output probabilities are blurred with a kernel of size sigma.

Standard options

-v, -verbose [n]

Increase/Set verbosity of output messages. (default: 0)

-debug [level]

Increase/Set debug level for output of intermediate results. (default: 0)

-version [major.minor]

Print version and exit or set version to emulate.

-revision

Print revision (or version) number only and exit.

-h, -help

Print help and exit.