knife_edge_track — DRIVE cutting op

• Data kinds: rgb → table

• Call: import fullseye as fs; fs.ledger.knife_edge_track(image, board_row: 'float | None' = None, win: 'int' = 6, reject_px: 'float' = 1.0, method: 'str' = 'coverage') -> 'dict' (to call the implementation directly, import cutting; cutting.knife_edge_track(image, board_row: 'float | None' = None, win: 'int' = 6, reject_px: 'float' = 1.0, method: 'str' = 'coverage') -> 'dict'; from the registry, opsdrive.get("knife_edge_track"))

Usage

Extracts the cutting-edge line, the spine and the tip from the face-view image (rule-based only).

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

手順: 輝度の縦の段が「暗 → 明」(刃 → 壁)になる行を列ごとに拾う → 食材の列(彩度の規則)と周辺 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。

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)

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