Skip to main content

derive_anatomical_calibration

Function derive_anatomical_calibration 

Source
pub fn derive_anatomical_calibration(
    input: &AnatomicalCalibrationInput<'_>,
) -> AnatomicalCalibrationResult
Expand 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 tensors S_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 stiffness E(rho_app).
  • Stage 3: 3D biharmonic TPS / Harmonic soft-tissue & organ-cavity transfer with guaranteed det(J) > 0.