Skip to main content

plan_tiles

Function plan_tiles 

Source
pub fn plan_tiles(
    width: u32,
    height: u32,
    policy: TilePolicy,
) -> Result<Vec<TileRect>, CvError>
Expand description

Plan a grid of overlapping tiles covering [0,width) × [0,height).

Step along each axis is tile - overlap (must be ≥ 1). Edge tiles are clamped to the image border (no padding).