Skip to main content

merge_flipped

Function merge_flipped 

Source
fn merge_flipped<T: Posterior>(
    post: &mut [T],
    flipped: &[f32],
    dims: [usize; 3],
    n_labels: usize,
    table: &[usize],
)
Expand description

Average the posteriors of the left-right flipped pass flipped (still mirrored along axis 0) into post, mapping each channel to its left-right partner table[c]. In place: the mirrored copy is never materialised.