parcel random

Usage

Run using mc_script parcel random after installation or using ~ndcn0236/bin/mc_script parcel random on jalapeno.

Import in python using from mcutils.scripts.parcel import random

Documentation

Randomly parcellates a surface

Functions

run(surface, ncluster[, max_iter])

Creates a random parcellation of the surface based on the distance between surface elements

uniform_centroids(dist_map, n_centroids)

Uniformly space n_centroids seeds in a naive way

CLI interface

add_to_parser(parser)

Creates the parser of the command line arguments

run_from_args(args)

Runs the script based on a Namespace containing the command line arguments