fullseye

knife_edge_track — DRIVE cutting op

使い方

正面像から刃先の直線・峰・先端を出す(規則のみ)。

手順: 輝度の縦の段が「暗 → 明」(刃 → 壁)になる行を列ごとに拾う → 食材の列(彩度の規則)と周辺 3 px を除く → 被覆率法で 副画素に(窓はぼけの推定に合わせて広げる)→ 全最小二乗の直線(measure.fit_line と同じ定式)→ 残差 > reject_px を外して 当て直す。上側の境界(峰と先端の斜め線)も同じく拾い、峰の直線から外れた右側の連続部分 = 斜め線、刃先線との交点 = 先端。 食材に隠れた列(occluded_cols)の刃先は、両側から当てた 1 本の直線の内挿になる。

method: "coverage"(既定)か "gradient"(微分の重心、比較用)。返り値: angle_deg(x 右・z 上の反時計回り、 atan2)、line(row = cy + (col − cx)·dy/dx の全最小二乗)、slope、offset、tip_rc(先端、見つからなければ None)、 n_points、rms_px、cols_used、occluded_cols。刃が写っていなければ ValueError。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

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

同カテゴリ(cutting)

cutting_scene · cutting_face_render · cutting_edge_render · cutting_episode_synth · cutting_wrist_mjcf · cut_depth_from_side · slice_thickness_profile · cut_surface_roughness


Provenance: cutting.py — DRIVE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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