Metadata-Version: 2.4
Name: ImageTileProcessor
Version: 0.2.1
Summary: An in-house package for lazy tiled image loading to save RAM and various methods to post-process tiled outputs
Project-URL: Homepage, https://github.com/BioinfoTongLI/ImageTileProcessor
Project-URL: Repository, https://github.com/BioinfoTongLI/ImageTileProcessor
Author-email: Tong Li <tl10@sanger.ac.uk>
License: MIT
License-File: LICENSE
Keywords: image,processing,tiles
Requires-Python: >=3.10
Requires-Dist: aicsimageio[all]>=4.12.1
Requires-Dist: bioformats-jar>=2020.5.27
Requires-Dist: click>=8.0.0
Requires-Dist: fire>=0.6.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: pandas>=2.0.0
Requires-Dist: shapely>=2.0.3
Requires-Dist: tifffile>=2022.4.8
Requires-Dist: tqdm>=4.67.1
Description-Content-Type: text/markdown

# ImageTileProcessor

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.

## Installation

```sh
poetry install
```
or
```sh
pip install ImageTileProcessor
```
## Usage
There are several command line tools that can be used to process tiled images (and their processed results).
```sh
merge-peaks

merge-polygons

tile-2d-image
```

And if you just want to fetch the raw pixel data from a tile, you can use the following function:
```python
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
)
```