Skip to main content

gibbs_unring

Function gibbs_unring 

Source
pub fn gibbs_unring(
    data: &[f64],
    dims: (usize, usize, usize),
    n_vols: usize,
    mode: GibbsMode,
) -> Vec<f64>
Expand description

Gibbs-unring multi-volume data (e.g. multi-echo magnitude), each volume in turn, as DIPY and MRtrix do for a 4-D array.

§Arguments

  • data - Interleaved [voxel0_vol0, voxel0_vol1, ..., voxel1_vol0, ...] (row-major (n_voxels, n_vols)).
  • dims - Volume dimensions (nx, ny, nz).
  • n_vols - Number of volumes.
  • mode - See GibbsMode; the default is Bautista et al.’s 3-D unringing.

§Returns

Unrung data in the same layout (never negative).