treeseg.base module

class treeseg.base.DetectionBase(detected, height_model)

Bases: object

Holding place for a potential base class for detection

plot(show=True)
points

Returns a GeoSeries of point geometries.

project_indices(indices)
class treeseg.base.HeightModel(array, crs=None, affine=None)

Bases: object

The base class for all rasterized height models used for detection and segmentation.

classmethod from_pyfor(pyfor_raster)
classmethod from_rasterio(rasterio_obj)
classmethod from_tif(tif_path)
plot()
class treeseg.base.SegmentationBase(polys, detection_base)

Bases: object

plot()
segments