run¶
Import in python using from mcot.core._scripts.surface.watershed import run
-
mcot.core._scripts.surface.watershed.run(surface: mcot.core.surface.cortical_mesh.CorticalMesh, depth, min_depth=0, min_size=0, fill_ridge=False)[source]¶ Runs watershed on the graph generated on the surface
Parameters: - surface – mesh representing cortical surface
- depth – (N, ) array where N is number of vertices
- min_depth – minimum offset between minimum along ridge and minimum depth for each segment
- min_size – minimal size of each segment in mm^2
- fill_ridge – if True, fills the ridge with the value of the smaller of the neighbouring parcels
Returns: (N, ) array with segmentation (-1 on edges, 1-M within segments, where M is the number of segments)