model op• Data kinds: metrologymodel → scalar
• Call: import fullseye as fs; fs.ledger.add_metrology_object_line_measure(model, row1, col1, row2, col2, n: 'int' = 25) -> 'int' (to call the implementation directly, import metrology; metrology.add_metrology_object_line_measure(model, row1, col1, row2, col2, n: 'int' = 25) -> 'int'; from the registry, opsmeasure1d.get("add_metrology_object_line_measure"))
> This operator's description has not been translated yet. The original text follows as it is.
直線計測オブジェクトを追加(add_metrology_object_line_measure)。index を返す。
参照線分 `(row1, col1) → (row2, col2) [px] を model["objects"]` に積む
(dict をその場で更新)。`apply_metrology_model はこの線分上に n` 点を
等間隔(両端を含む)に置き、各点から 線分の法線方向 に短い測定線を張って
サブピクセルのエッジを探し、得た点に直線を最小二乗で当て直す。
• `n`: サンプル点数(既定 25)。多いほどフィットは安定するが計測時間は比例。
• 端点が一致する(長さ `< 1e-9)線分は積めるが、apply` 時にサンプル 0 個
→ フィット失敗として `params=None、rms=inf` で返る(例外にはならない)。
• 引数の型・範囲はここでは検証しない(画像外の座標も積める。`apply` 時に
最近傍で外挿されるだけで例外は出ない)。
• 返り値: 追加したオブジェクトの index(0 始まり)。`apply` の結果 list の
同じ位置に `type="line" の結果(row1/col1/row2/col2/angle_deg`)が入る。
`align_metrology_model` で平行移動するときは両端点が一緒に動く。
• subpixel_measuring family guide
• 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.
• poc_dimensional_inspection — py -3.11 examples/poc_dimensional_inspection.py
scalar as input)—
model)create_metrology_model · add_metrology_object_circle_measure · add_metrology_object_rectangle2_measure · add_metrology_object_ellipse_measure · add_metrology_object_generic
*Provenance: metrology.py — MEASURE1D 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.