Zarr-enabled segmentation tool for biological cells of irregular size and shape in 3D and 2D.
Project description
VollSegZarr
Zarr-enabled volume segmentation for extremely large microscopy images
VollSegZarr is a fork of VollSeg that adds native support for Zarr format, enabling efficient processing of multi-terabyte microscopy volumes that don't fit in memory.
Features
- Zarr Format Support: Native support for chunked, compressed Zarr arrays
- Memory Efficient: Process images larger than available RAM
- 100% Backward Compatible: Works with all existing TIFF workflows
- Automatic Format Detection: Transparently handles TIFF and Zarr
- Better Compression: 60-80% smaller file sizes with Zstd
- Cloud Ready: Efficient streaming from cloud storage
- All VollSeg Modes: StarDist, UNET, Hybrid, CellPose, etc.
Installation
pip install vollsegzarr
Quick Start
from vollsegzarr import VollSeg, StarDist3D
from vollsegzarr.zarr_io import imread, imwrite
# Load model
star_model = StarDist3D.local_from_pretrained("Carcinoma_cells")
# Segment from Zarr (or TIFF - automatic detection)
image = imread("data/volume.zarr")
results = VollSeg(image, star_model=star_model, axes="ZYX", n_tiles=(4, 8, 8))
# Save to Zarr
imwrite("output/labels.zarr", results[1], compression='zstd')
See README_ZARR.md for full documentation.
Why Zarr?
For huge images like (201, 5, 7577, 7577) ≈ 114 GB:
- TIFF: 114 GB file, 2-5 min load, 114 GB RAM required
- Zarr: 20-40 GB file, < 1 sec load, on-demand memory
License
BSD-3-Clause
Credits
Original VollSeg by Varun Kapoor et al. Zarr integration for large-scale imaging.
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
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 vollsegzarr-0.0.1.tar.gz.
File metadata
- Download URL: vollsegzarr-0.0.1.tar.gz
- Upload date:
- Size: 80.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afebcebc1e7e953925069a75a9db79dc28cf79927a8887fc40f65b6585e592c
|
|
| MD5 |
31f8a6ecfc7813740e994566c4e2453a
|
|
| BLAKE2b-256 |
cf3f577e4cdd166b0dfee1a9fc0c525faaf76836598912aa871eb107216e766f
|
File details
Details for the file vollsegzarr-0.0.1-py3-none-any.whl.
File metadata
- Download URL: vollsegzarr-0.0.1-py3-none-any.whl
- Upload date:
- Size: 90.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b17f246fa40fbb42ac6d5f0a8965e822f2eb4be9237034695c23955fbe3c1a8
|
|
| MD5 |
54379c9261e216f5803d89889b5817fa
|
|
| BLAKE2b-256 |
c7ce8f306d7137cec6d2e69b768f2ade8885c1144aa268108261b45b7ea32a6b
|