Skip to main content

harperella

Function harperella 

Source
pub fn harperella(
    phase: &[f64],
    mask: &[u8],
    grid: &Grid,
    params: &HarperellaParams,
    progress: impl FnMut(usize, usize),
) -> (Vec<f64>, Vec<u8>)
Expand description

HARPERELLA — integrated phase unwrapping and background removal

Estimates exterior Laplacian by enforcing uniform SMV across the FOV.

§Arguments

  • phase - Wrapped phase in radians (nx * ny * nz)
  • mask - Binary brain mask (nx * ny * nz), 1 = inside
  • grid - Volume dimensions and voxel sizes
  • params - Algorithm parameters
  • progress - Progress callback (iteration, max_iter)

§Returns

(tissue_phase, mask) — unwrapped background-free tissue phase and brain mask