Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/labs/spatial_models/hierarchical_parcellation.py   nipy(Download)
from numpy.random import rand
 
from nipy.algorithms.clustering.utils import kmeans, voronoi
from .parcellation import MultiSubjectParcellation
from nipy.algorithms.graph.field import Field
 
    # compute the group-level labels
    template_labels = voronoi(domain.coord, proto_anat)
 
    # create the parcellation
 
        # compute the group-level labels
        template_labels = voronoi(domain.coord, proto_anat)
 
        # create the parcellation