cascade_images¶
-
toasty.merge.
cascade_images
(pio, mode, start, merger, cli_progress=False)[source]¶ Downsample image tiles all the way to the top of the pyramid.
This function will walk the tiles in the tile pyramid, merging child tile images and writing new tile images at shallower levels of the pyramid.
- Parameters
- pio
toasty.pyramid.PyramidIO
An object managing I/O on the tiles in the pyramid.
- mode
toasty.image.ImageMode
The image mode (i.e., RGB or scientific) to process.
- startnonnegative integer
The depth at which to start the cascade process. It is assumed that the tiles at this depth are already populated by some other means. This function will create new tiles at shallower depths.
- mergera merger function
The method used to create a parent tile from its child tiles. This is a callable that follows the Merger Protocol.
- cli_progressoptional boolean, defaults False
If true, a progress bar will be printed to the terminal using tqdm.
- pio