Skip to main content

tile_grid

Function tile_grid 

Source
pub fn tile_grid(
    frame_h: usize,
    frame_w: usize,
    tile_h: usize,
    tile_w: usize,
    overlap_ratio: f32,
) -> Vec<TileSpec>
Expand description

Uniform overlapping EvenDist tile grid covering a frame_h×frame_w frame. Row-major (all columns of row 0, then row 1, …). Every tile is full-size (tile_w×tile_h) unless the frame is smaller than the tile on an axis, in which case that axis yields a single whole-frame crop.