diff --git a/tools/extract/leonida/vectors.py b/tools/extract/leonida/vectors.py index d7ab033..d6087a9 100644 --- a/tools/extract/leonida/vectors.py +++ b/tools/extract/leonida/vectors.py @@ -60,7 +60,10 @@ def road_mask(labels: np.ndarray) -> np.ndarray: return closing(mask, disk(3)) -BRIDGE_MARGIN_PX = 3 # Rand um die Straßenfläche; die Fläche selbst ist nie "wasser". +# Rand in Pixeln (= Metern) um die Straßenfläche zur Brückenprüfung: die Straßenfläche +# selbst ist per Definition nie "wasser", daher muss das Fenster über ihren Rand +# hinausschauen, um das Wasser zu sehen, das sie überquert. +BRIDGE_MARGIN_PX = 3 def road_polygons(labels: np.ndarray) -> list[tuple[Polygon, bool]]: