Expand description
Tiled raster processing for datasets exceeding VRAM budget.
This module provides automatic tile-based decomposition of large rasters that would otherwise overflow GPU VRAM. Key concepts:
- A tile is a rectangular sub-region of the full raster.
- An overlap halo (optional) extends each tile by
overlap_pixelson every active edge, using edge-replication for boundary pixels. - Splitting decomposes a flat f32 raster into
Vec<RasterTile>. - Stitching assembles processed tiles back into a full raster, discarding the halo and writing only the core interior.
auto_tile_sizefinds a tile size that fits inside an available VRAM budget by halving the area until it fits.execute_tiledorchestrates split → per-tiletile_fn→ stitch.
Structs§
- Raster
Tile - A single tile extracted from a raster, optionally padded with an overlap halo.
- Tiled
Config - Configuration for tiled raster processing.
Functions§
- auto_
tile_ size - Compute an auto-selected tile size that fits within the effective VRAM budget.
- execute_
tiled - High-level tiled executor: split → per-tile
tile_fn→ stitch. - split_
into_ tiles - Split a flat f32 raster (row-major) into tiles with an optional overlap halo.
- stitch_
tiles - Stitch processed tiles back into a full raster.
- vram_
per_ tile - Estimate the VRAM required to process one tile.