# R59 · Registration uncertainty and repeated texture

Six complete scan files were selected by seed from the metadata inventory after excluding scans in the R3 survey and practice fields; one native center crop from planes 1–3 was extracted from each. Files smaller than 1,000,000,000 bytes were excluded and size/mtime checked before and after extraction. The first three filenames are development and the other three are a different-file comparison. Different filenames do **not** establish independent biological samples or prove that a scan was never inspected elsewhere. Source coordinates, XY calibration and crop hashes are preserved. [Selection](/results/r59/selection.json) · [crop metadata](/results/r59/crops.json) · [protocol](/results/r59/protocol.json).

For each 768×768 crop, compare seven fixed conditions: a synthetic rigid shift (7, −5 pixels); the same shift after Gaussian blur; piecewise motion with left shift (7, −5) and right shift (15, −5); independently generated near-constant noise with no shared image signal; an exact 16-pixel periodic grating rolled one period; constant images; and real focal planes 1 versus 3 whose true displacement is unknown. The synthetic periodic grating is identical in all six cases, so it is one repeated pattern, not six independent patterns. Each transformed pair is preserved, and no reference segmentation is used to infer shifts. [Visual cases](/results/r59/) · [numeric data](/results/r59/results.json).

Compare three predeclared image-only checks: the previous raw phase response/size guard plus exact-constant rejection; mean-centered phase correlation with the same guard; and mean-centered phase with bidirectional cycle error ≤1 pixel plus four local quadrant estimates that must pass the guard and agree with the global estimate within 3 pixels. These thresholds were fixed before inference and are not calibrated confidence or guarantees. The strict method leaves an estimate marked *tentative* or abstains; it does not change the source scans.

| Control, across six files | Raw tentative | Strict tentative | Interpretation |
|---|---:|---:|---|
| Rigid shift | 6/6 | 6/6 | All accepted estimates were within 1 pixel of the injected shift. |
| Blurred rigid shift | 6/6 | 6/6 | All accepted estimates were within 1 pixel of the injected shift. |
| Piecewise motion | 6/6 | 0/6 | The constructed image has no single globally correct shift. |
| Independent near-constant noise | 0/6 | 0/6 | The two images share no signal from which to infer translation. |
| Exact periodic grating | 6/6 | 6/6 | One-period roll gives the identical image, so translation is ambiguous. |
| Constant images | 0/6 | 0/6 | Both checks abstain via exact-constant handling. |
| Real focal pair | 6/6 | 3/6 | True motion is unknown; neither acceptance nor rejection is validated. |

The three development files and three other files exhibited the same above counts proportionally, but the sample is very small. The two rigid cases are controlled transforms of an image, not independent microscope acquisitions. The local/cycle heuristic catches the constructed two-region motion yet cannot identify inherently repeated texture: a perfect cycle and local agreement can coexist with an ambiguous answer. Original images and all uncertainty are retained; no score here establishes real stage displacement or diatom identity.

## Posthoc periodic warning and failure on new patterns

After observing the exact grating failure, a [fixed-lag periodicity warning](/diatom_pilot/periodic_ambiguity.py) was constructed and applied posthoc. It flagged the original repeated pattern in all six replicated cases without flagging the 12 simple rigid/blurred controls in this sample. These results are exploratory and may reject legitimate repetitive images. [Audit](/results/r59/periodic-audit.json).

Before viewing outcomes, freeze that posthoc code and test four new exact 2D periodic patterns. The strict local/cycle check accepted **4/4** ambiguous pairs; the fixed-lag warning flagged **1/4**. The other three use periods outside its small tested lag set, so a no-flag result cannot be treated as safe. [Four-pattern protocol](/results/r59/periodic-generalization-protocol.json) · [results](/results/r59/periodic-generalization.json). These are artificial gratings, not a calibrated estimate of real microscope failure frequency.

**Decision.** Preserve unregistered planes and candidate hypotheses. Do not promote either heuristic as reliable automatic alignment or human-level segmentation; repeated textures, low-information inputs and real focal changes need more rigorous uncertainty measures and independent controls. [Archive format](/results/r59/archive-format.md) and `research/r59_verify_artifacts.py` verify the native crops and regenerated control pairs. The original complete scans remain authoritative for later species identification.
