tedana.model.fit.spatclust¶
-
spatclust
(img, min_cluster_size, threshold=None, index=None, mask=None)[source]¶ Spatially clusters img
Parameters: - img (str or img_like) – Image file or object to be clustered
- min_cluster_size (int) – Minimum cluster size (in voxels)
- threshold (float, optional) – Whether to threshold img before clustering
- index (array_like, optional) – Whether to extract volumes from img for clustering
- mask ((S,) array_like, optional) – Boolean array for masking resultant data array
Returns: clustered – Binarized array (values are 0 or 1) of clustered (and thresholded) img data
Return type: