# L46 · Toy focal-stack overlap cues

Extract native 768×768 crops from indexed planes 0–4 of three previously inspected complete Academy scan fields; any source under 1,000,000,000 bytes is rejected and scan size/mtime checked before and after reading. [Crop archive](/results/l46/backgrounds.npz) · [crop metadata](/results/l46/backgrounds.json) record slide, XY, plane hashes and source XY calibration. Preserve the complete scans as authoritative original high-resolution data. Six previously inspected Gündüz source components (three pairs) are separately preserved as [original public images and masks](/results/l46/source-objects/). Their structural mask correspondence is not expert validation.

For each pair, make one separated and one crossing scene. Add each masked source image's grayscale residual to the corresponding real background plane after Gaussian blur; imposed synthetic focus peaks are indices 1 and 3, and the blur sigma is `0.5 + 1.5 × |plane − peak|`. This additive, clipped 8-bit model is a controlled cue experiment, not calibrated optical image formation or actual biological depth. The two source masks are treated as potentially overlapping **full/amodal** regions. [Protocol](/results/l46/protocol.json) · [all scene panels](/results/l46/) · [full data](/results/l46/results.json).

## Oracle contrast profiles

Use the known full source masks to compute smoothed squared-Laplacian contrast over the five planes. The known masks make this an **oracle**: it is not an automatic technique for finding objects. On three separated pairs, both assigned peak indices were recovered for 6/6 objects. On three crossings, full-mask peaks agreed with the imposed index for 4/6; scoring only known nonshared source pixels gave 5/6. That exclusive region also requires knowing both masks. Real-background-only profiles are recorded as a control; their peaks are background contrast, not true depth. Curves in the panels are independently min–max normalized, so heights across curves are not comparable.

With oracle reference-derived boxes, MobileSAM directly matched 5/6 crossing source masks at IoU ≥0.5 on the middle plane, 4/6 on each full-mask-contrast-selected plane, 5/6 using exclusive-region-selected planes, and 6/6 when the best plane is selected using source-mask IoU after the fact. All these are reference-assisted diagnostic upper bounds, not deployable discovery rates. Choosing the best result by its reference IoU explicitly uses the answer.

## Automatic candidates

Apply the frozen generic detector and box-prompt MobileSAM independently to each plane. Compare the middle-plane proposals with a round-robin five-plane pool ordered 2, 1, 3, 0, 4 and greedily suppress candidate mask IoU ≥0.8. Reference masks do not select automatic prompts. Matches are one-to-one against the full synthetic source masks at IoU ≥0.5.

| Condition | Objects | Middle plane top 20 | Five-plane pool top 20 | Middle candidates | Pooled candidates after suppression |
|---|---:|---:|---:|---:|---:|
| Separated | 6 | 2 | 4 | 4 | 8 |
| Crossing | 6 | 1 | 4 | 2 | 8 |

The five-plane run uses five detector and mask-proposal passes instead of one; the synthetic focus arrangement intentionally places one source sharpest on either side of the middle, so this is not a cost-controlled or neutral test. A posthoc per-plane audit gives 2/6 crossing matches for either index 1 or 3 in this small sample; selecting a plane after seeing labels is an oracle. An additional posthoc full-pool sensitivity comparison found no change in matched counts when using no cross-plane suppression or IoU thresholds 0.8 and 0.95; the preserved raw pool still can contain duplicates. These results do not prove that deduplication will preserve real overlapping objects. [Per-plane audit](/results/l46/plane-audit.json) · [suppression audit](/results/l46/suppression-audit.json).

All 32 raw automatic mask hypotheses and their plane indices are preserved in six per-scene archives, including suppressed alternatives; [archive format](/results/l46/archive-format.md). The six original public source images and masks are also preserved, and real scan crops retain their coordinates and calibration. The synthetic scenes share objects with R56 and the backgrounds are previously inspected. Background texture, registration, optical blur and mask errors confound results; neither contrast peaks nor temporal stability establish specimen identity, true depth, human proficiency or freshwater field accuracy. A real-object, independently reviewed overlap benchmark is still required.

Source objects: Hüseyin Gündüz, [Diatom Dataset](https://www.kaggle.com/datasets/huseyingunduz/diatom-dataset), CC BY-NC-SA 4.0; cropped, resized, blurred, composited and overlaid; derivatives shared noncommercially under the same license. Academy field crops are local data. `research/l46_verify_artifacts.py` verifies archived masks and source hashes; `research/l46_label_axes.py` adds explicit plot ticks without altering numeric evidence.
