Skip to main content

tiled_echo

Function tiled_echo 

Source
pub(crate) fn tiled_echo(
    phase: &[f64],
    mask: &[u8],
    grid: &Grid,
    eroded_rad: i32,
    cfg: &TileConfig,
    cost: &TileCost,
    run_patch: impl Fn(&[f64], &[u8], &Grid) -> Result<Vec<f64>, OnnxError> + Sync,
) -> Result<Vec<f64>, OnnxError>
Expand description

One echo patch by patch: erode the mask on the whole volume, then run run_patch (the network with no erosion of its own) on each tile. cost is the network’s tile cost, whose divisor (16: the LoT-Unet has four pooling levels) pads each patch.