pub fn nextqsm(
total_field: &[f64],
mask: &[u8],
grid: &Grid,
bdir: (f64, f64, f64),
bf_onnx: &[u8],
vjp_onnx: &[u8],
) -> Result<Vec<f64>, OnnxError>Expand description
Run NeXtQSM on a total field map.
total_field— total field (ppm), column-major(nx,ny,nz).mask— binary brain mask (same layout).bdir— B0 direction;bf_onnx/vjp_onnx— the two exported graphs.
The volume is zero-padded (centered) to a multiple of 64 (six pooling levels), reconstructed, and cropped back. Returns susceptibility (ppm), masked.