Selecting contrast boxes before SAM inference
Exploratory replay on previously examined R64 synthetic scenes. Three pairs repeat across conditions. Synthetic masks and additive blur are not expert real-slide labels and do not establish human-level accuracy.
Before consulting each box's saved segmentation mask or reference labels, we choose 20 or 40 boxes per plane using the original contrast ordering, 4×4 spatial round robin, overlap with same-plane detector boxes, or a detector/spatial hybrid. The fixed three-stream ranking and IoU ≥0.8 mask suppression then run unchanged. Full synthetic masks are matched one-to-one at IoU ≥0.5. Replay itself uses already generated masks and does not measure inference time.
Nine crossing scenes: 18 targets
| Policy | Boxes/plane | Top 5 | Top 10 | Top 20 | All | Retained masks |
|---|
| prefix | 20 | 7 | 7 | 7 | 7 | 451 |
| spatial | 20 | 7 | 7 | 7 | 7 | 409 |
| box_detector | 20 | 8 | 8 | 8 | 8 | 454 |
| hybrid | 20 | 8 | 8 | 8 | 8 | 432 |
| prefix | 40 | 7 | 7 | 7 | 7 | 879 |
| spatial | 40 | 7 | 9 | 9 | 9 | 838 |
| box_detector | 40 | 7 | 8 | 8 | 8 | 880 |
| hybrid | 40 | 7 | 9 | 9 | 9 | 866 |
The 80-box baseline matched 9/18 at top 10 and 10/18 with all candidates. Equal totals need not mean the same targets: spatial-40 lost an 80-box match in one scene but gained one in another. A different-source validation is needed.
Actual prompt inference on four selected scenes
Reruns use saved selected box coordinates; time includes five SAM image encodings and mask inference but excludes box generation, detector, NMS and scoring. One run per case is not a production benchmark. Changed-mask and eligibility columns compare each new output against the stored 80-box run.
| Scene | Policy | Seconds | Changed masks | Eligibility changes |
|---|
| 2 · crossing_split | spatial_40 | 2.84 | 0 | 0 |
| 2 · crossing_split | prefix_80 | 4.48 | 0 | 0 |
| 3 · crossing_same_middle | spatial_40 | 2.76 | 0 | 0 |
| 3 · crossing_same_middle | prefix_80 | 4.30 | 0 | 0 |
| 12 · crossing_split | spatial_40 | 2.76 | 0 | 0 |
| 12 · crossing_split | prefix_80 | 4.34 | 0 | 0 |
| 10 · background_only | spatial_40 | 2.82 | 0 | 0 |
| 10 · background_only | prefix_80 | 4.47 | 0 | 0 |
Replay protocol · Scores and selected IDs · Rerun protocol · Rerun masks and timing. Natural-background-only controls contain unannotated objects; candidate counts are not false positives. Public foreground: Gündüz et al., CC BY-NC-SA 4.0; provenance in R64.
separated_split · pair 1

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_split · pair 1

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_same_middle · pair 1

Top 10 at 40 boxes per plane: prefix 1/2, spatial 2/2, box_detector 2/2, hybrid 2/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_weak · pair 1

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
background_only · pair 1

Top 10 at 40 boxes per plane: prefix 0/0, spatial 0/0, box_detector 0/0, hybrid 0/0. Original planes · All candidate boxes and masks · CLAHE outputs.
separated_split · pair 2

Top 10 at 40 boxes per plane: prefix 2/2, spatial 2/2, box_detector 2/2, hybrid 2/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_split · pair 2

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_same_middle · pair 2

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_weak · pair 2

Top 10 at 40 boxes per plane: prefix 0/2, spatial 0/2, box_detector 0/2, hybrid 0/2. Original planes · All candidate boxes and masks · CLAHE outputs.
background_only · pair 2

Top 10 at 40 boxes per plane: prefix 0/0, spatial 0/0, box_detector 0/0, hybrid 0/0. Original planes · All candidate boxes and masks · CLAHE outputs.
separated_split · pair 3

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_split · pair 3

Top 10 at 40 boxes per plane: prefix 1/2, spatial 2/2, box_detector 1/2, hybrid 2/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_same_middle · pair 3

Top 10 at 40 boxes per plane: prefix 1/2, spatial 1/2, box_detector 1/2, hybrid 1/2. Original planes · All candidate boxes and masks · CLAHE outputs.
crossing_weak · pair 3

Top 10 at 40 boxes per plane: prefix 0/2, spatial 0/2, box_detector 0/2, hybrid 0/2. Original planes · All candidate boxes and masks · CLAHE outputs.
background_only · pair 3

Top 10 at 40 boxes per plane: prefix 0/0, spatial 0/0, box_detector 0/0, hybrid 0/0. Original planes · All candidate boxes and masks · CLAHE outputs.