lane op• 数据种类:rgbimage × matrix × matrix × signal → table
• 调用: import fullseye as fs; fs.ledger.plane_topview_color(image, K, R, t, *, z=0.0, centre=(0.0, 0.0), extent=30.0, res=0.05, fill=(0.0, 0.0, 0.0))(要直接调用实现,import laneops; laneops.plane_topview_color(image, K, R, t, *, z=0.0, centre=(0.0, 0.0), extent=30.0, res=0.05, fill=(0.0, 0.0, 0.0));从台账取用则 opsdrive.get("plane_topview_color"))
• GPU:无(仅 CPU 参考实现)
将地面平面投影为保留 RGB 的俯视图,并返回有效掩码及像素与世界坐标的对应关系。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
投影格子は既存 plane_topview と共通の calib 核を使う。列=世界+x、行=世界−y、画素中心は整数。レンズ歪みは補正済みを前提とし、地面を単一平面 z=zとみなすため、坂・縁石・車体は正しい位置にならない。Kの正則性と焦点距離、Rの直交性・行列式を入口で検査し、満たさなければ拒否する。
image : (H, W, 3) rgbimage
0..1 RGB。色を輝度へ落とさない。
K, R, t : matrix, matrix, signal
X_camera = R @ X_world + tの内部/外部パラメータ。
z, centre, extent, res
平面の高さ、出力中心(x,y)、一辺[m]、1画素[m]。
table
rgb, valid, world_x/y, image_row/col, pixel_to_world と逆行列。
English: bilinearly rectify RGB onto a world z-plane while retaining a validity mask and both pixel/world correspondences. It assumes an already-undistorted image and a single plane; non-planar road objects are not metrically valid. It validates nonsingular positive-focal K and a proper orthogonal R before any sampling.
呼び出し例::
import numpy as np
import laneops
rgb = np.zeros((8, 8, 3)); rgb[..., 1] = 1.0
K = np.array([[4., 0., 3.5], [0., 4., 3.5], [0., 0., 1.]])
R = np.diag([1., -1., -1.]); C = np.array([0., 0., 4.])
out = laneops.plane_topview_color(rgb, K, R, -R @ C, extent=4., res=.5)
assert out["rgb"].shape == (8, 8, 3) and np.all(out["rgb"][out["valid"], 1] == 1.0)
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• lane_ops_tour — py -3.11 examples/lane_ops_tour.py
table 作为输入)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
lane)color_rule_mask · lane_boundary_fit · lane_center_path · stop_line_detect
*Provenance: laneops.py — DRIVE 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.