pub fn unwrap_romeo(
phase: &[f64],
mag: &[f64],
phase2: Option<&[f64]>,
te1: f64,
te2: f64,
mask: &[u8],
params: &RomeoParams,
grid: &Grid,
) -> Vec<f64>Expand description
Unwrap a single 3D phase volume using ROMEO.
Computes ROMEO edge weights and performs region-growing phase unwrapping.
§Arguments
phase- Wrapped phase data (nx * ny * nz)mag- Magnitude data (pass empty slice if none)phase2- Optional second echo phase for gradient coherence weightste1,te2- Echo times for phase gradient coherence scalingmask- Binary mask (1 = process)params- ROMEO parameters (weight_type used for weight calculation)nx,ny,nz- Array dimensions
§Returns
Unwrapped phase (same size as input)