fishtank.seg.polygon_properties#
- fishtank.seg.polygon_properties(polygons, cell='cell', z='global_z')#
Calculate geometric properties of polygons.
- Parameters:
polygons (
GeoDataFrame) – a GeoDataFrame of cell outlines.cell (
str(default:'cell')) – the name of the cell column in the GeoDataFrame.z (
str|None(default:'global_z')) – the name of the z column in the GeoDataFrame. If None, the polygons are assumed to be 2D.
- Return type:
DataFrame- Returns:
properties a DataFrame of cell properties.