# Candidate mask archives

Each `masks-XX.npz` or `synthetic-masks-XX.npz` is a NumPy compressed archive containing `packed` (bits in NumPy's default big-bit order), `shape` (`[candidate_count, 512, 512]`), `ids`, and `streams`. Recover the original ordered boolean masks with:

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

Every candidate before cross-stream deduplication is preserved, including masks listed as suppressed in `results.json` or `synthetic-results.json`. Suppression aliases identify the earlier retained candidate. Original field identity and image hashes are recorded in the scores and source selection files; synthetic scenes can be regenerated using their frozen source and background protocols. Masks are geometry hypotheses, not biological ground truth. Data derived from the Gündüz dataset are for noncommercial use and share-alike, CC BY-NC-SA 4.0; see [research note](/research/L45.md).
