procrustes_align in neuropose.analyzer.features — Kabsch closed-form rigid alignment between two pose sequences, with per_frame and per_sequence modes and an optional scale flag for cross-subject comparisons. Returns aligned arrays plus an AlignmentDiagnostics dataclass reporting rotation magnitude (mean and max), translation magnitude (mean and max), and scale factor, so downstream code can flag suspiciously large transforms. Wired into every DTW entry point via a new keyword-only align parameter — "none" (the default) preserves the 0.1 raw-coordinate behaviour, while "procrustes_per_frame" and "procrustes_per_sequence" route inputs through procrustes_align before DTW runs. Rejects mismatched frame counts when alignment is requested (Procrustes requires a 1:1 correspondence). Phase 0 of TECHNICAL.md: closes one of the three methodological gaps Paper C's pipeline is waiting on. |
||
|---|---|---|
| .. | ||
| integration | ||
| unit | ||
| conftest.py | ||