major_axis_len
cellseg_gsontools.geometry.major_axis_len(polygon)
¶
Compute the major axis length of a polygon.
Note
The major axis is the (x,y) endpoints of the longest line that can be drawn through the object. Major axis length is the pixel distance between the major-axis endpoints - Wirth
Parameters:
Name | Type | Description | Default |
---|---|---|---|
polygon |
Polygon
|
Input shapely polygon object. |
required |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The length of the major axis. |