fuzzy_measure_pairing — MEASURE1D caliper op

Data kinds: image2d × measurehandletable

Call: import fullseye as fs; fs.ledger.fuzzy_measure_pairing(image, measure, sigma=1.0, threshold=0.1, pair_size=None) (to call the implementation directly, import measuring1d; measuring1d.fuzzy_measure_pairing(image, measure, sigma=1.0, threshold=0.1, pair_size=None); from the registry, opsmeasure1d.get("fuzzy_measure_pairing"))

Usage

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

ファジィ基準(想定幅 pair_size)に最も合うエッジ対を選ぶ(fuzzy_measure_pairing)。

手順: `measure_pairs(image, measure, sigma, threshold)` で極性の異なる隣接

エッジの対を取り、各対に ``fuzzy_score = exp(-((width - pair_size) /

(0.5 pair_size))^2)`` を付けて スコア降順に並べ替える。想定幅ちょうどで 1、

幅が `±0.5 pair_size ずれると e^-1` ≈ 0.37。先頭要素が最も合う対。

• `image`: 2-D float(グレー値の単位は入力のまま)。

• `measure: gen_measure_rectangle2 / gen_measure_arc` の dict。

• `sigma: プロファイルの平滑化 σ [サンプル]。threshold`: 採用するエッジの

最小 |グレー差|(画像の単位)。

• `pair_size: 想定幅 [px]。None` なら並べ替えもスコア付けもせず

`measure_pairs` の結果(測定線に沿った順)をそのまま返す。0 や負は検証

しない(0 だと分母が 1e-9 になり全対のスコアがほぼ 0 か 1 に潰れる)。

• 返り値: 対の dict の list(`table 型)。各 dict は first / second`

(サンプル index)、`width [px]、first_point / second_point`

(`(row, col))、first_amplitude / second_amplitudefuzzy_score`。

対が 1 つも無ければ空 list(例外にはしない)。

幅の下限・上限で切りたい場合はこの結果を `width` で自分でフィルタする

(この op は順位付けだけで、閾での除外はしない)。

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 table as input)

Same category (caliper)

gen_measure_rectangle2 · gen_measure_arc · translate_measure · measure_pos · measure_pairs


*Provenance: measuring1d.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.