tile_apply
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.
tile_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").
Functions
| Name | Description |
|---|---|
| reassemble | Blend a stack of tiles back into the patch they were cut from. |
| tile_apply | Apply a function to overlapping windows of the patch. |
Classes
| Name | Description |
|---|---|
| TileApply | Apply a function to overlapping windows of a patch. |