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)) (implementation को सीधे call करना हो तो 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)), registry से लेना हो तो opsdrive.get("plane_topview_color"))

• GPU: नहीं (केवल CPU reference implementation)

उपयोग

Ground plane को रंग बनाए रखते हुए top view में project करता है और validity mask तथा pixel↔world coordinates लौटाता है।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

投影格子は既存 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)

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• lane_ops_tour — py -3.11 examples/lane_ops_tour.py

वे अगले ops जिनसे type जुड़ता है (table को input के रूप में लेते हैं)

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

इसी category के (lane)

color_rule_mask · lane_boundary_fit · lane_center_path · stop_line_detect


*Provenance: laneops.py — DRIVE operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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