Skip to main content

temporal_uncertain_rewrap

Function temporal_uncertain_rewrap 

Source
fn temporal_uncertain_rewrap(
    phase: &mut [f64],
    ref_scaled: &[f64],
    weights: &[u8],
    mask: &[u8],
    threshold: f64,
    nx: usize,
    ny: usize,
    nz: usize,
)
Expand description

Re-unwrap voxels that are uncertain after temporal unwrapping.

Computes a quality metric comparing the unwrapped phase to the TE-scaled reference. Voxels with low quality (likely wrap errors) are re-unwrapped spatially using the certain voxels as seeds.

Matches ROMEO.jl temporal_uncertain_unwrapping!.