|
1 | | -from shapely.geometry import Point |
2 | 1 | import numpy as np |
3 | 2 | from mapmanagercore.benchmark import timer |
4 | 3 | from mapmanagercore.utils import union |
5 | 4 | from ..layers.line import calcSubLine, extend, getSpineSide, getSpineAngle |
6 | 5 | import shapely |
7 | 6 | from ..lazy_geo_pandas import schema, compute, LazyGeoFrame |
8 | 7 | import geopandas as gp |
9 | | -from shapely.geometry import LineString, MultiPolygon, Polygon |
10 | | -from ..lazy_geo_pd_images import computeROI |
11 | | - |
| 8 | +from shapely.geometry import LineString, MultiPolygon, Polygon, Point |
| 9 | +from ..lazy_geo_pd_images import aggregateROI |
12 | 10 |
|
13 | 11 | @schema( |
14 | 12 | index=["spineID", "t"], |
@@ -250,12 +248,12 @@ def roiBg(frame: LazyGeoFrame) -> gp.GeoSeries: |
250 | 248 |
|
251 | 249 | # Image based ROI computed stats |
252 | 250 |
|
253 | | - @computeROI(title="Roi", dependencies=["roi", "z"], aggregate=['sum', 'max'], group="ROI") |
| 251 | + @aggregateROI(title="Roi", dependencies=["roi", "z"], aggregate=['sum', 'max'], group="ROI") |
254 | 252 | @timer |
255 | 253 | def roiStats(frame: LazyGeoFrame): |
256 | 254 | return frame[["roi", "z"]] |
257 | 255 |
|
258 | | - @computeROI(title="Background Roi", dependencies=["roiBg", "z"], aggregate=['sum', 'max'], group="ROI Background") |
| 256 | + @aggregateROI(title="Background Roi", dependencies=["roiBg", "z"], aggregate=['sum', 'max'], group="ROI Background") |
259 | 257 | @timer |
260 | 258 | def roiStatsBg(frame: LazyGeoFrame): |
261 | 259 | return frame[["roiBg", "z"]] |
0 commit comments