This is a in-house package to deal with lazy tiled image tile loading to save RAM and various methods to post process tiled outpus.
poetry installor
pip install ImageTileProcessorThere are several command line tools that can be used to process tiled images (and their processed results).
merge-peaks
merge-polygons
tile-2d-imageAnd if you just want to fetch the raw pixel data from a tile, you can use the following function:
from imagetileprocessor import slice_and_crop_image
slice_and_crop_image(
image_p, x_min, x_max, y_min, y_max, zs, channel, resolution_level
)