Apply Fuzzy C-Means (FCM) clustering to each 2D slice of a 3D image.
Input attributes:
Parameters: |
|
---|
Typical values are:
exponent = 2
max_iterations = 100
min_improvement = 0.00001
Output attributes:
Parameters: |
|
---|
Example:
>>> fuzzycluster = FuzzyCMeansCluster()
>>> fuzzycluster.inputs.input_image = '{session}_T1.nii.gz'
>>> fuzzycluster.inputs.num_clusters = 4
>>> fuzzycluster.inputs.cluster = 2
>>> fuzzycluster.inputs.exponent = 2
>>> fuzzycluster.inputs.max_iterations = 100
>>> fuzzycluster.inputs.min_improvement = 0.00001
>>> print fuzzycluster.cmdline
'FLEX_fcm {session}_T1.nii.gz 4 2 100 0.00001'
>>> fuzzycluster.run()