lane op• Data kinds: rgbimage × table → table
• Call: import fullseye as fs; fs.ledger.color_rule_mask(image, rules=None) (to call the implementation directly, import laneops; laneops.color_rule_mask(image, rules=None); from the registry, opsdrive.get("color_rule_mask"))
• GPU: none (CPU reference implementation only)
Classify RGB as white line, yellow line, or unknown with explicit HSV rules, returning masks and confidence.
> The detailed description below is the original text — the summary and the headings are translated.
trans_from_rgb の既存実装でRGB→HSVに変換する。白と黄のscoreを独立に計算して最大scoreを採るため、rulesをlistで渡した順序には依存しない。scoreが min_class_confidence未満、または上位2色の差がambiguity_margin以下なら unknownに棄却する。影・逆光・濡れ路面に合わせた自動較正はしない。
image : (H, W, 3) rgbimage
0..1の有限なRGB画像。
rules : table or None
名前付きしきい値の上書き。[{"name":"white", "min_value":...}, ...]も可。
table
labels(0 unknown, 1 white, 2 yellow)、各mask、confidence、色ごとのscore、HSV、使った規則。
English: classify finite RGB pixels as white, yellow or unknown with explicit HSV thresholds after the existing trans_from_rgb conversion. Ambiguous pixels are rejected. White additionally requires local value contrast, so a uniformly bright road is not a white line; this is a fixed classical rule, not an illumination estimator.
呼び出し例::
import numpy as np
import laneops
rgb = np.array([[[0.9, 0.9, 0.9], [0.9, 0.75, 0.05], [0.3, 0.3, 0.3]]])
out = laneops.color_rule_mask(rgb, {})
assert out["labels"].tolist() == [[1, 2, 0]]
• 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.
• lane_ops_tour — py -3.11 examples/lane_ops_tour.py
table as input)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
lane)plane_topview_color · lane_boundary_fit · lane_center_path · stop_line_detect
*Provenance: laneops.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.