Warp engine (warp/)¶
Headless manual warp correction used by the WarpDrive plugin. The package
imports neither Qt nor VTK — the Qt shell drives a WarpSession; numerics live
here.
Modules¶
Module |
Role |
|---|---|
|
|
|
Point-set of source/target displacements |
|
Solve / evaluate radial basis functions |
|
Dense |
|
Apply a field to volumes |
|
Persist fields / sessions |
|
Editable field helpers |
The correction field is always rebuilt from the full active point set (no incremental accumulation). That keeps undo/edit trivial: drop a point, re-solve.
Critical path: apply a warp¶
WarpDrive widget
│ edit points / undo
▼
WarpSession ──solve_weights──► rbf
│
│ evaluate_on_grid
▼
DeformationField
│
│ apply.py
▼
warped volume / overlay ──► viewer layers
Quality assurance¶
Golden tests:
tests/test_warp_compose_golden.pyHelper script:
scripts/warp_golden.pyPlugin shell (discovery, capture, teardown):
tests/test_warp_plugin.py
See also¶
AutoAPI:
brain_deer.warpUser-facing WarpDrive guide in the user docs (when published under Plugins)