Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/examples/labs/watershed_labeling.py   nipy(Download)
 
from nipy.labs.spatial_models.hroi import HROI_from_watershed
from nipy.labs.spatial_models.discrete_domain import grid_domain_from_shape
import nipy.labs.utils.simul_multisubject_fmri_dataset as simul
 
 
# compute the field structure and perform the watershed
domain = grid_domain_from_shape(shape)
nroi = HROI_from_watershed(domain, np.ravel(x), threshold=th)
label = nroi.label

src/n/i/nipy-0.3.0/examples/labs/blob_extraction.py   nipy(Download)
import nipy.labs.utils.simul_multisubject_fmri_dataset as simul
import nipy.labs.spatial_models.hroi as hroi
from nipy.labs.spatial_models.discrete_domain import grid_domain_from_shape
 
# ---------------------------------------------------------
 
# create a domain descriptor associated with this
domain = grid_domain_from_shape(shape)
nroi = hroi.HROI_as_discrete_domain_blobs(domain, values, threshold=2.0, smin=3)
 

src/n/i/nipy-0.3.0/examples/labs/multi_subject_parcellation.py   nipy(Download)
nbparcel = 10
ldata = np.reshape(dataset, (n_subj, np.prod(shape), 1))
domain = dom.grid_domain_from_shape(shape)
 
# step 3 : run the algorithm