hull
Compute a geometric hull around a set of 2D points.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xy
|
ndarray
|
An array of shape (N, 2) representing N 2D points. |
required |
hull_type
|
str
|
The type of hull to compute. Must be one of "alpha_shape", "convex_hull", "bbox", or "ellipse". |
'alpha_shape'
|
**kwargs
|
Any
|
Additional keyword arguments passed to the underlying hull computation functions (e.g., parameters for alpha shape). |
{}
|
Raises:
Type | Description |
---|---|
ValueError
|
If an invalid hull_type is provided. |
Returns:
Name | Type | Description |
---|---|---|
Polygon |
Polygon
|
A shapely Polygon object representing the computed hull. |
Examples: