cortex.polyutils.Surface.get_geodesic_patches

Surface.get_geodesic_patches(radius, seeds=None, n_random_seeds=None, output='dense')

create patches of cortex centered around each vertex seed

  • must specify seeds or n_random_seeds

Parameters:
- radiusnumber

radius of searchlights

- seedslist of ints

centers of each patch

- n_random_seedsint

number of vertex seeds to generate

- output‘dense’ or ‘sparse’

‘dense’: output as dense binary array (faster, less memory efficient) ‘sparse’: output as sparse binary array (slower, more memory efficient)