# PHercMANBp: 20260427100434-1.129um-0.2m-59keV-masked -> 20251216152116-2.399um-0.2m-78keV-masked

Registration of the moving scan `20260427100434-1.129um-0.2m-59keV-masked` (1.129 um) to the fixed scan `20251216152116-2.399um-0.2m-78keV-masked` (2.399 um), made with `ufsm reg` (github.com/SuperOptimizer/ufsm, src/reg.c), CT read from this mirror.

- `transform.json`: published schema; `transformation_matrix` = refined best-fit affine, moving level-0 voxel (x, y, z) -> fixed level-0 voxel (x, y, z).
- `field.f32` + `field.json`: residual smooth displacement on the fixed grid; full map: moving = T^-1 (p + D(p)) for a fixed point p (see field.json, worked example).
- `reg.json`: the same map in ufsm's format (`ufsm reg map reg.json [--f2c] x,y,z`, `ufsm reg overlay`, `ufsm reg boxes`).
- `eval.json`, `eval_boxes.jsonl`: accuracy before / after on held-out boxes and the certified region; `residuals.jsonl`: the final fit's per-box residuals.

Method: starting from the published transform, per ~1.2 mm box the moving scan's pyramid level closest to the fixed voxel is resampled onto the fixed grid,
both are band-passed (difference of Gaussians), and the 3D shift maximising normalised cross-correlation is found (integer search, then sub-voxel by re-resampling and a quadratic fit).
A Huber-robust affine correction and a membrane-regularised trilinear displacement field (spacing 0.899625 mm, chosen by 1/5 hold-out cross-validation) are fitted to the box shifts,
coarse to fine (~19 um, ~9.5 um, ~4.8 um, ~2.4 um boxes). Evaluation boxes sit midway between the fit boxes.

| | p50 | p90 | share < 1/4 voxel |
|---|---|---|---|
| before (published transform) | 3.058 vox (7.34 um) | 6.464 vox (15.51 um) | 0% |
| after (held-out boxes) | 0.374 vox (0.9 um) | 1.281 vox (3.07 um) | 36.7% |

Voxels are fixed-scan level-0 voxels (2.399 um). Certified: 18 of 49 papyrus evaluation boxes (per fixed-z slab in eval.json).
