tile_apply

module of dascore.proc source

Apply a function to overlapping windows of a patch, and blend them back.

Many operations on DAS data are local: a window of the data is transformed, edited, and put back, and the windows overlap so that the seams do not show. The adaptive spectral filter is one; local normalization, a local f-k filter, and tile-wise rank reduction are others. What they share is everything but the function, and this module holds the everything.

Patch.window declares the tiling, and its apply cuts the patch into tiles along one or more dimensions, hands them to a function, and either blends them back under a taper into a patch shaped like the input (mode="overlap_add") or returns them stacked, one tile axis per windowed dimension, for the caller to work on and put back with reassemble (mode="stack"). TileApply is the operation behind it.

Functions

Name Description
reassemble Blend a stack of tiles back into the patch they were cut from.

Classes

Name Description
Reassemble Blend a stack of tiles back into the patch they were cut from.
TileApply Apply a function to overlapping windows of the patch.