sphericity
cellseg_gsontools.geometry.sphericity(polygon, **kwargs)
¶
Compute the sphericity of a polygon.
Note
Sphericity measures how close an object is to the shape of a “sphere”. It is defined as the ratio of the radius of the minimum inscribing circle to the radius of the minimum bounding circle.
Sphericity: $$ \frac{\text{MIR}}{\text{MBR}} $$
where \(\text{MIR}\) is the radius of the minimum inscribing circle radius and \(\text{MBR}\) is the radius of the minimum bounding radius.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
polygon |
Polygon
|
Input shapely polygon object. |
required |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The sphericity value of a polygon. |