add_metrology_object_generic — MEASURE1D model op

Data kinds: metrologymodelscalar

Call: import fullseye as fs; fs.ledger.add_metrology_object_generic(model, otype, params, n: 'int' = 40) -> 'int' (to call the implementation directly, import metrology; metrology.add_metrology_object_generic(model, otype, params, n: 'int' = 40) -> 'int'; from the registry, opsmeasure1d.get("add_metrology_object_generic"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

汎用計測オブジェクトを追加(add_metrology_object_generic)。

形状の種類を文字列で指定する入口。`otypeparams` の組は専用 op と

同じ並びでなければならない:

• `"line": (row1, col1, row2, col2)`

• `"circle": (row, col, radius)`

• `"rect": (row, col, phi, l1, l2)(phi ラジアン、l1/l2` 半辺長)

• `"ellipse": (row, col, phi, ra, rb)`

`paramstuple にして積むだけで、**ここでは otype` も要素数も検証

しない**。未知の `otypeapply_metrology_modelValueError` で拒否し、

要素数が違えば同じく `apply` 時に展開で失敗する。設定ファイルから形状を

読み込むときは、積む前に上の表で確認すること。

• `n`: サンプル数(既定 40。矩形は 4 辺に分配)。

• 返り値: 追加位置の index(0 始まり)。

• `align_metrology_modelparams[0]/params[1]` を row/col として

動かす(`"line" のみ [2]/[3]` も)。

Detailed usage guide

subpixel_measuring family guide

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_dimensional_inspectionpy -3.11 examples/poc_dimensional_inspection.py

Ops the type connects to (they accept scalar as input)

Same category (model)

create_metrology_model · add_metrology_object_line_measure · add_metrology_object_circle_measure · add_metrology_object_rectangle2_measure · add_metrology_object_ellipse_measure


*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.