lane_boundary_fit — DRIVE lane op

• 데이터 종류: keypoints → table

• 호출: import fullseye as fs; fs.ledger.lane_boundary_fit(points, *, side='unknown', ransac_threshold=0.18, ransac_iterations=300, initial_outlier_weight=0.25, seed=0)(구현을 직접 호출하려면 import laneops; laneops.lane_boundary_fit(points, *, side='unknown', ransac_threshold=0.18, ransac_iterations=300, initial_outlier_weight=0.25, seed=0), 원장에서 가져오려면 opsdrive.get("lane_boundary_fit"))

• GPU: 없음(CPU 참조 구현만)

사용법

하향식 점(가로 x, 전방 y)에 차선 경계 x=c0+c1*y+c2*y² 를 강건하게 맞춘다.

> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.

既存 ransac_line を外れ値に強い初期直線として使い、その後Huber IRLSの二次曲線へ拡張する。強いS字、yが折り返す境界、地面平面でない点には使えない。

Parameters

points : (N, 2) keypoints

世界座標 (x lateral, y forward) [m]。順序は問わない。

side : {"left", "right", "unknown"}

後段が片側だけを車線中央へずらすための名前。

ransac_threshold, ransac_iterations, initial_outlier_weight, seed

直線/最終inlierの距離[m]、反復数、初期RANSAC外れ値のIRLS重み、固定乱数seed。

initial_outlier_weight=0.25は初期inlierを4倍優先しつつ、曲線上で初期直線から

外れた点を残すための固定値である。

Returns

table

正準のnormalised_coefficients(b0,b1,b2), y_centre, y_scale、

observed_y、inlier_mask、残差、RMS、確信度。互換用の

coefficients(c0,c1,c2)は abs(y) <= 1e6 m の範囲だけ数値精度を契約する。

English: initialise with the existing 3-D ransac_line (z=0), then fit the boundary x(y) with a Huber robust quadratic. Point order does not matter. It centres and normalises y for rank, condition-number, least-squares work, and evaluation. normalised_coefficients, y_centre, and y_scale are the canonical output. The legacy expanded world coefficients are numerically guaranteed only while abs(y) <= 1e6 m. The final inlier design must have rank 3, at least three distinct y values, and bounded condition number; otherwise it returns valid=False instead of silently using a line. Hairpins where y is not single-valued are outside the contract and fail closed.

呼び出し例::

import numpy as np

import laneops

y = np.linspace(0., 20., 41); x = -1.75 + 0.002 * y*y

fit = laneops.lane_boundary_fit(np.c_[x, y], side="left", seed=7)

assert np.allclose(fit["coefficients"], [-1.75, 0., 0.002], atol=1e-10)

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

• 샘플 데이터 카탈로그(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 · plane_topview_color · 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.