Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vollsegzarr-0.0.2.tar.gz (80.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vollsegzarr-0.0.2-py3-none-any.whl (93.2 kB view details)

Uploaded Python 3

File details

Details for the file vollsegzarr-0.0.2.tar.gz.

File metadata

  • Download URL: vollsegzarr-0.0.2.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

Hashes for vollsegzarr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b27bef8294f42255ec6588d0235e94ade47187125e7e548fa57da14ea10b257c
MD5 ee7fc3972056e78aaf66a5fb3751dab2
BLAKE2b-256 eb28af0c5d4721a15195046db7e10da5f5d3dd6ce0156882fcc60aaa1f3c63f0

See more details on using hashes here.

File details

Details for the file vollsegzarr-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: vollsegzarr-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 93.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for vollsegzarr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd3ccd0d1a10f53d68503234a917a43d26273657f6ada4822a757a8cd54727f4
MD5 a427f00eda49329bc06ea0c4c4a5782e
BLAKE2b-256 367f9ed261c5947f33c342a25d28d075aef8e94d833f4a3d045c8e8f60e0f044

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page