Inheritance diagram for nipy.neurospin.spatial_models.parcellation:
Generic Parcellation class: Contains all the items that define a multi-subject parcellation
Author : Bertrand Thirion, 2005-2008
TODO : add a method ‘global field’, i.e. non-subject-specific info
This is the basic Parcellation class: It is defined discretely , i.e. the parcellation is an explicit function on the set of voxels (or equivalently a labelling) we explictly handle the case of multiple subjects, where the labelling varies with the subjects
that represents the grid of voxels to be parcelled (the same for all subjects) typically anatomical_dimension=3 - referential rerpresents the image referential, resoltuion, position and size this is expressed as an affine (4,4) transformation matrix - label is an (nbvox*subjects) array: nbvox is the number of voxels within the binary mask if the voxel is not labelled in a given subject, then the label is -1 thus the label has integer values in [-1,k-1] - group_labels is a labelling of the template - subjects=none is a list of ids of the subjects by default, is is set as range(self.nb_subj)