pub fn derive_anatomical_calibration(
input: &AnatomicalCalibrationInput<'_>,
) -> AnatomicalCalibrationResultExpand description
Derive the full 3-stage anatomical, densitometric, and organ-cavity calibration.
Preserves full backward compatibility via result.body_fit while adding:
- Stage 1: Weighted ridge-regularized SSDM subspace projection ->
(b, c)and non-uniform bone scaling tensorsS_b = diag(s_{b,x}, s_{b,y}, s_{b,z}). - Stage 2: Locally affine stiffness-penalized per-bone registration weighted by
observation confidence
w_k = c_obs(t)and bone mineral stiffnessE(rho_app). - Stage 3: 3D biharmonic TPS / Harmonic soft-tissue & organ-cavity transfer with
guaranteed
det(J) > 0.