Skip to main content

lattice_windows

Function lattice_windows 

Source
fn lattice_windows(size: usize, p: usize, overlap: usize) -> Vec<usize>
Expand description

Window origins along an axis of size voxels for windows of p (both multiples of LATTICE): the first at 0, the last at size − p, and the fewest windows whose steps — each a multiple of the lattice, as even as the lattice allows — leave at least overlap voxels shared between neighbours.