Skip to main content

decimate_mask

Function decimate_mask 

Source
fn decimate_mask(mask: &[u8], dims: (usize, usize, usize)) -> Vec<u8> ⓘ
Expand description

Decimate a mask the same way Volume::halved decimates data: keep the even samples, with no blur, so the coarse mask stays binary and sits on the coarse sample positions exactly.