pub fn mcpc3ds_b0_pipeline(
phases: &[impl AsRef<[f64]>],
mags: &[impl AsRef<[f64]>],
tes: &[f64],
mask: &[u8],
sigma: [f64; 3],
weight_type: B0WeightType,
nx: usize,
ny: usize,
nz: usize,
) -> (Vec<f64>, Vec<f64>, Vec<Vec<f64>>)Expand description
Full MCPC-3D-S + B0 calculation pipeline
This combines phase offset removal with weighted B0 calculation
§Arguments
phases- Wrapped phase for each echomags- Magnitude for each echotes- Echo times in msmask- Binary masksigma- Smoothing sigma for phase offset [sx, sy, sz]weight_type- B0 weighting typenx,ny,nz- Dimensions
§Returns
(b0_hz, phase_offset, corrected_phases)