plane_topview_color — DRIVE 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の直交性・行列式を入口で検査し、満たさなければ拒否する。

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)

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL 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 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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