# Focal simulation artifact format

Each `scene-XX.npz` contains `planes` (five 512×512 simulated uint8 images), `full_masks` and `exclusive_masks` (two 512×512 boolean arrays), and `candidate_bits` containing every unsuppressed automatic mask in NumPy `packbits` default big-bit order. `candidate_shape` is `[count,512,512]`; `candidate_ids` and `candidate_z` preserve ordering and source plane. Recover masks with:

```python
import numpy as np
with np.load("scene-01.npz", allow_pickle=False) as f:
    n, h, w = map(int, f["candidate_shape"])
    masks = np.unpackbits(f["candidate_bits"])[:n*h*w].reshape(n,h,w).astype(bool)
    ids = f["candidate_ids"].tolist()
    z_indices = f["candidate_z"].tolist()
```

`results.json` records cross-plane suppression aliases; no masks were deleted from the archive. `backgrounds.npz` separately contains native 768×768 grayscale crops from actual scan planes before simulated objects were added. `backgrounds.json` records slide names, XY origins, raw crop hashes, pixel calibration and indices; it does not assign object depth. The complete original scans remain the authoritative full-resolution source. The six public source images and masks are preserved under `source-objects/` with CC BY-NC-SA 4.0 attribution.
