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

PolicyBoxes/planeTop 5Top 10Top 20AllRetained masks
prefix207777451
spatial207777409
box_detector208888454
hybrid208888432
prefix407777879
spatial407999838
box_detector407888880
hybrid407999866

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.

ScenePolicySecondsChanged masksEligibility changes
2 · crossing_splitspatial_402.8400
2 · crossing_splitprefix_804.4800
3 · crossing_same_middlespatial_402.7600
3 · crossing_same_middleprefix_804.3000
12 · crossing_splitspatial_402.7600
12 · crossing_splitprefix_804.3400
10 · background_onlyspatial_402.8200
10 · background_onlyprefix_804.4700

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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

Synthetic targets and box selection comparisons

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.