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.1.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.1.0.tar.gz.
File metadata
- Download URL: tileflow-0.1.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 |
3b5868291f7e8447dadf40a0b5e83058241bce03c7a10e38c88827627ee6b577
|
|
| MD5 |
6c165e3b2b9300fa75c43f23e1243e9e
|
|
| BLAKE2b-256 |
5c7e3cc1a332137de166ebbbad7e4a95c1160ea96c15a86340ae647c54abb3c6
|
File details
Details for the file tileflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tileflow-0.1.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 |
1e15d5020a057421968e9182f38209e56389503df7342581a7d094310195c12a
|
|
| MD5 |
8b8b02ba35e3b3fca3a3f0349e2007f9
|
|
| BLAKE2b-256 |
66bdb732a61c75790c5be429809ff15476d22947ac2f15c2422f9cb2f2bd2648
|