anomaly_patch opimage2d × table → tableimport fullseye as fs; fs.ledger.patchdist_score(image, model, smooth=4.0) (実装を直接呼ぶなら import anomaly_patch; anomaly_patch.patchdist_score(image, model, smooth=4.0)、台帳から引くなら opsspc.get("patchdist_score"))Score one image against a per-position normal distribution: the Mahalanobis distance per patch (table).
model comes from patchdist_fit; image must have the training images’ shape. The
grid of distances sqrt((x - mu)' P (x - mu)) is interpolated (bilinear, between patch
centres) to the image size and smoothed by a Gaussian of smooth px (0 = no smoothing).
Returns map (H, W; higher = more anomalous), grid (the raw distances),
image_score (the maximum of the smoothed map) and smooth.
Raises ValueError for a model that is not a patchdist_fit result, a different image
shape, or a negative / non-finite smooth.
table を入力に取れる)msa_anova_table · msa_gauge_rr · msa_bias_linearity · msa_attribute_agreement · gum_standard_uncertainty · gum_propagate · gum_expanded · gum_monte_carlo
anomaly_patch)patch_features · patchdist_fit · patchbank_fit · patchbank_score
Provenance: anomaly_patch.py — SPC operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.