Add your description here
Project description
TileFlow
Fast, memory‑efficient image tiling & reconstruction for deep learning and whole‑slide images.
Features
- Zero‑copy numpy views for tiles (when possible)
- Overlap/stride control with accurate merge
- Lazy pipelines with pluggable processors
- WSI backends (TIFF, Zarr/Dask)
Install
pip install tileflow
Quickstart
from tileflow.dummy import generate_dummy, DummySobelModel
import numpy as np
model = DummySobelModel(tile_size=(128, 128), overlap=(0, 0))
image = generate_dummy(shape=(320, 320))
raw_sobel = model._sobel_filter(image)
reconstructed_image_no_overlap = model.predict_numpy(image)
model_with_overlap = DummySobelModel(tile_size=(128, 128), overlap=(4, 4))
reconstructed_image_with_overlap = model_with_overlap.predict_numpy(image)
# print the error between raw and reconstructed images
error_no_overlap = np.abs(raw_sobel - reconstructed_image_no_overlap)
error_with_overlap = np.abs(raw_sobel - reconstructed_image_with_overlap)
print("Error without overlap:", np.mean(error_no_overlap)) # 0.00026957, correspong to tile glitches
print("Error with overlap:", np.mean(error_with_overlap)) # 0, perfect reconstruction with overlap
Credits
Valentin Poque (Jully-September 2025 Intern)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tileflow-0.2.0.tar.gz
(9.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tileflow-0.2.0.tar.gz.
File metadata
- Download URL: tileflow-0.2.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8cdd6b7b459540dc1923de645e34bc56173231619c65c07d64e0ebe67d44e99
|
|
| MD5 |
c46f9f282a2ff647347282ab1ddf469a
|
|
| BLAKE2b-256 |
f50d5ed088432107a5b77599cdb67283da824b731fdacc799d22308244041b99
|
File details
Details for the file tileflow-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tileflow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fbbd008d1eb37da998410483772aeb98278e563c59bcbf4b2c268737749efc9
|
|
| MD5 |
f30e22312c4959a9ff29490cbbe24f21
|
|
| BLAKE2b-256 |
05ee2d8a2b046353d27dbd415aef9e7f99814e25f318d4333ad7e23d80eed409
|