profile_deviation — PROFILE compare op

• Data kinds: pairs × pairs → table

• Call: import fullseye as fs; fs.ledger.profile_deviation(measured, reference, n=200, align='chord', oversample=8) (to call the implementation directly, import profileops; profileops.profile_deviation(measured, reference, n=200, align='chord', oversample=8); from the registry, opsprofile.get("profile_deviation"))

Usage

The signed deviation along the normal from the design shape. Returns a dict.

Positive means "the thick side (outward)", negative "the thin side". The outward normal of the design contour is the reference.

Args:

measured / reference: (N, 2) closed contours.

n: number of equal-arc-length points used for the comparison (both are resampled).

align: ALIGN_MODES.

oversample: how many times denser than the reference the other side is resampled (default 8).

Because the polyline cuts the arc, the deviation gets a floor, so resample the other side finely.

Returns:

dict: points (points on the reference side, (n, 2)), deviation ((n,)),

max / min / rms / mean, align.

Detailed usage guide

• profile_metrology 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)

• profile_shape_inspection — py -3.11 examples/profile_shape_inspection.py

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

—

Same category (compare)

profile_align


*Provenance: profileops.py — PROFILE 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.