voronoi_medial
cellseg_gsontools.lines.voronoi_medial(polygon, n=None, delta=None)
¶
Compute the medial lines of a polygon using voronoi diagram.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
polygon |
Polygon
|
Polygon to compute the medial lines of. |
required |
n |
int
|
Number of resampled points in the input polygon, defaults to None |
None
|
delta |
float
|
Distance between resampled polygon points, defaults to None. Ignored if n is not None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
vertices |
ndarray
|
Array of vertices of the voronoi diagram. |
edges |
ndarray
|
Array of edges of the voronoi diagram. |