tiles

module of dascore.utils source

Cut an array into overlapping tiles, and blend them back.

A :class:TilePlan is the geometry: where every tile of a given size and stride sits over an array of a given shape, zero padded so that every tile which reaches the array exists whole. It cuts the array into a dense stack of tiles, [n_tiles, *size], which one call to a vectorized function can transform, and adds a stack back under a taper so that, with a taper whose ramps are complementary, tiles of an untouched stack sum to the array they were cut from.

The plan is the part of a windowed operation which has nothing to do with the operation. The adaptive spectral filter is the first thing written on it; anything which transforms, edits, and reassembles windows is the next.

Functions

Name Description
get_tile_plan Return the plan for tiles of size at stride over an array of shape.

Classes

Name Description
TilePlan Where every tile sits over an array.