Skip to main content

combine_two_pass

Function combine_two_pass 

Source
pub fn combine_two_pass(
    reliable: &[f64],
    filled: &[f64],
    support: &[u8],
) -> Result<Vec<f64>, PipelineError>
Expand description

Combine the two passes: the reliable reconstruction where it is defined, the filled one elsewhere.

support is where reliable carries a reconstruction — not the mask the pass was asked for. Background removal erodes, so the two differ by a rim of voxels in which reliable is zero; selecting on the requested mask would keep those zeros and ring the holes with a seam of empty voxels. Passing the support the inversion actually produced makes the seam impossible.