Function that performs the parcellation by optimizing the sinter-subject similarity while retaining the connectedness within subject and some consistency across subjects.
Parameters : | Pa: a Parcel structure that essentially contains :
anat_coord: array of shape(nbvox,3) which defines the position :
nbperm=0: the number of times the parcellation and prfx :
niter=10: number of iterations to obtain the convergence of the method :
mu=10., float, relative weight of anatomical information : |
---|
Core function of the heirrachical parcellation procedure.
Parameters : | Ranat: array of shape (n,3): set of positions sampled form the data : RFeature: array of shape (n,f): assocaited feature : Feature: list of subject-related feature arrays : Pa : parcellation instance that is updated Gs: graph that represents the topology of the parcellation : anat_coord: arrao of shape (nvox,3) space defining set of coordinates : lamb=1.0: parameter to weight position :
dmax = 10: locality parameter (in the space of anat_coord) :
chunksize=1.e5 not used here (to be removed) : niter = 5: number of iterations in teh algorithm : verbose=0: verbosity level : |
---|---|
Returns : | U: list of arrays of length nsubj :
Proto_anat: array of shape (nvox) labelling of the common space :
|
caveat: assumes that the functional dimension is 1