aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/AreaOfInterest/AOIFeatures.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/argaze/AreaOfInterest/AOIFeatures.py b/src/argaze/AreaOfInterest/AOIFeatures.py
index a8bab02..65470af 100644
--- a/src/argaze/AreaOfInterest/AOIFeatures.py
+++ b/src/argaze/AreaOfInterest/AOIFeatures.py
@@ -256,8 +256,13 @@ class AOIScene():
for name, area in aoi_scene_data.items():
areas[name] = AreaOfInterest(area)
- # Guess dimension from first area dimension
- dimension = list(areas.values())[0].dimension
+ # Default dimension is 0
+ dimension = 0
+
+ # Guess dimension from first area dimension (default: 2)
+ if len(areas) > 0:
+
+ dimension = list(areas.values())[0].dimension
return AOIScene(dimension = dimension, areas = areas)