osm_road_mask — DRIVE japan op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.osm_road_mask(graph: 'dict', *, step: 'float' = 0.5, margin: 'float' = 6.0, bbox=None) -> 'Dict[str, object]' (to call the implementation directly, import drivejapan; drivejapan.osm_road_mask(graph: 'dict', *, step: 'float' = 0.5, margin: 'float' = 6.0, bbox=None) -> 'Dict[str, object]'; from the registry, opsdrive.get("osm_road_mask"))

Usage

Binary (2-valued) image of the union of roads, with edges drawn as line segments of given width (with round ends).

> The detailed description below is the original text — the summary and the headings are translated.

画素 (r, c) の中心 = (xmin + (c + ½) step, ymin + (r + ½) step)、行は y の増える向き(数学座標。表示で上下を返す)。返り値 {"mask": (H, W) bool, "xmin", "ymin", "step", "shape", "area_m2": 画素数 × step²}。Raises ValueError: step ≤ 0、画像が 4e7 画素を超える(step を粗く)。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_driving_japan_town — py -3.11 examples/poc_driving_japan_town.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (japan)

osm_synthetic · osm_parse · osm_road_graph · osm_road_loops · osm_route · japan_world · japan_stats · latlon_to_local


*Provenance: drivejapan.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.