model op• Data kinds: metrologymodel → scalar
• Call: import fullseye as fs; fs.ledger.add_metrology_object_rectangle2_measure(model, row, col, phi, l1, l2, n: 'int' = 40) -> 'int' (to call the implementation directly, import metrology; metrology.add_metrology_object_rectangle2_measure(model, row, col, phi, l1, l2, n: 'int' = 40) -> 'int'; from the registry, opsmeasure1d.get("add_metrology_object_rectangle2_measure"))
> This operator's description has not been translated yet. The original text follows as it is.
矩形計測オブジェクトを追加(add_metrology_object_rectangle2_measure)。
`phi = l1 辺の向き(col 軸から、ラジアン)、l1/l2` = 半辺長。
参照矩形(中心 `(row, col) [px]、phi 方向の半辺長 l1`、直交方向の
半辺長 `l2)を model["objects"]` に積む(dict をその場で更新)。
`apply_metrology_model は 4 辺それぞれに max(2, n // 4)` 点を 角を避けて
等間隔に置き、各辺の外向き法線に沿ってエッジを測り、矩形フィットで
中心・向き・半辺長を出し直す。
• `phi`: col 軸(x)から row 軸(画像下向き)へ測ったラジアン
(`gen_measure_rectangle2` と同じ規約)。
• `l1, l2`: 半辺長 [px] (全長ではない)。
• `n`: 総サンプル数の目安(既定 40 → 各辺 10 点)。4 未満でも各辺 2 点は置く。
• 引数は検証しない。返り値は追加位置の index(0 始まり)。
• `apply 結果の params は row / col / phi / l1 / l2` で、再フィット後は
**`l1 >= l2(長辺が l1)に並び替えられる** ―― 参照で l1 < l2` と与えても
結果の `phi` は長辺の向きになる。
• 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_line_measure · add_metrology_object_circle_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.