Skip to main content

mcpc3ds_b0_pipeline

Function mcpc3ds_b0_pipeline 

Source
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 echo
  • mags - Magnitude for each echo
  • tes - Echo times in ms
  • mask - Binary mask
  • sigma - Smoothing sigma for phase offset [sx, sy, sz]
  • weight_type - B0 weighting type
  • nx, ny, nz - Dimensions

§Returns

(b0_hz, phase_offset, corrected_phases)