# L1 Focal differences

Status: initial visual experiment. [Open the plate](../results/l1/focus-differences.jpg). Reproduce with `python3 research/l1_focus.py`.

For each of four practice fields, the plate shows the central plane, the signed difference between neighboring planes, and the absolute difference with a contrast stretch. The first row uses planes 1–3 because the baseline's plane 1 has no previous plane. The signed view places zero near gray. All planes share a per-field display contrast curve.

Both ovals in GC104890a field 8 show outlines in the difference, including the lower oval the dark-rim method missed. Debris and overlapping structures also generate edges, especially in crowded fields. This is a visual observation, not a demonstrated improvement in detection. These fields were selected and seen previously.

The inputs are display-stretched JPEGs, so this is a qualitative preview rather than a calibrated intensity derivative or quantitative phase image. Actual Z spacing, registration, illumination, exposure and compression need checking on original TIFF pixels before a transport-of-intensity reconstruction. Partial coherence and low-frequency noise affect interpretation. [Through-focus imaging](https://doi.org/10.1364/OE.22.010661) · [Partially coherent TIE limitations](https://www.nature.com/articles/s41598-017-06837-1)

Promising next step: compute a lossless native-pixel three-plane difference and test it as an additional detector input against a matched single-plane input on held-out real crossings. Compare false positives on debris. Keep the original planes available to the reviewer.
