fn correct_global_offset(phase: &mut [f64], mask: &[u8])Expand description
Correct global 2π offset for a single 3D volume.
Subtracts 2π * median(round(phase / 2π)) from the entire volume,
bringing the median phase closest to 0. Matches ROMEO.jl correctglobal.