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 = insidegrid- Volume dimensions and voxel sizesparams- Algorithm parametersprogress- Progress callback (iteration, max_iter)
§Returns
(tissue_phase, mask) — unwrapped background-free tissue phase and brain mask