align_metrology_model — MEASURE1D apply op

• Data kinds: metrologymodel → metrologymodel

• Call: import fullseye as fs; fs.ledger.align_metrology_model(model, drow=0.0, dcol=0.0) -> 'dict' (to call the implementation directly, import metrology; metrology.align_metrology_model(model, drow=0.0, dcol=0.0) -> 'dict'; from the registry, opsmeasure1d.get("align_metrology_model"))

Usage

Aligns all objects of the metrology model by translating them (align_metrology_model).

Returns a new model with (drow, dcol) [px] added to the positions of all objects (the input dict is not modified). For line both end points (row1, col1) and (row2, col2) move; for circle / rect / ellipse the centre (row, col) moves. Radii, half side lengths, phi and n are unchanged -- rotation and scale are not handled.

• drow, dcol: displacement [px]. Default 0 (it then just makes a copy).

• Types are not validated. An unknown type stacked with add_metrology_object_generic is moved by treating params[0]/params[1] as row/col.

• Returns: {"objects": [...]} (type metrologymodel).

Typical example: apply here to the model the positional offset obtained from shape matching or from detecting a reference mark, then run apply_metrology_model. Not usable for tilted workpieces (the normals of the reference shapes deviate from the real normals and leave the search half-width measure_length).

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

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

add_metrology_object_line_measure · add_metrology_object_circle_measure · add_metrology_object_rectangle2_measure · add_metrology_object_ellipse_measure · add_metrology_object_generic · apply_metrology_model

Same category (apply)

apply_metrology_model


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