plane_topview_color — DRIVE lane op

• Data kinds: rgbimage × matrix × matrix × signal → table

• Call: 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)) (to call the implementation directly, 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)); from the registry, opsdrive.get("plane_topview_color"))

• GPU: none (CPU reference implementation only)

Usage

Project a ground plane into a colour-preserving top view and return a validity mask plus pixel-to-world coordinates.

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

投影格子は既存 plane_topview と共通の calib 核を使う。列=世界+x、行=世界−y、画素中心は整数。レンズ歪みは補正済みを前提とし、地面を単一平面 z=zとみなすため、坂・縁石・車体は正しい位置にならない。Kの正則性と焦点距離、Rの直交性・行列式を入口で検査し、満たさなければ拒否する。

Parameters

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]。

Returns

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)

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)

• lane_ops_tour — py -3.11 examples/lane_ops_tour.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 (lane)

color_rule_mask · 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.