Skip to main content

calculate_weights_romeo

Function calculate_weights_romeo 

Source
pub fn calculate_weights_romeo(
    phase: &[f64],
    mag: &[f64],
    phase2: Option<&[f64]>,
    te1: f64,
    te2: f64,
    mask: &[u8],
    nx: usize,
    ny: usize,
    nz: usize,
) -> Vec<u8> 
Expand description

Calculate ROMEO edge weights for phase unwrapping.

Uses the default Romeo weight type (PC + PGC + PL + MC). Returns weights array of size 3 * nx * ny * nz in C order [dim][i][j][k]. Weights are 1-255 (valid) or 0 (no edge / masked out).