Skip to main content

My python package package

Project description

ReScale4DL: Balancing Pixel and Contextual Information for Enhanced Bioimage Segmentation

Python 3.8+ License: MIT

A systematic approach for determining optimal image resolution in deep learning-based microscopy segmentation, balancing accuracy with acquisition/storage costs.

Key Features

  • Resolution simulation: Rescale images and their respective annotations (upsample and downsample)
  • Segmentation evaluation: Compare performance across resolutions using:
    • Mean Intersection-over-Union (IoU)
    • Morphological features
    • Potential throughput
    • Personalised metrics
  • Visualization tools: Generate comparative plots and sample outputs

Installation

ReScale4DL is available as a Python package through pip. Activate your conda environment or create one and install it with pip:

pip install rescale4dl

Manual installation

Manual installation from using GitHub repository

git clone https://github.com/HenriquesLab/ReScale4DL.git
cd rescale4dl
conda create -n rescale4dl "python<=3.12"
conda activate rescale4dl
python -m pip install .

Usage

1. Image Rescaling

Notebook: Rescale_Images.ipynb

2. Segmentation Analysis

Notebook: Evaluate_Segmentation.ipynb

3. Rescale and crop

Notebook: Rescale_Foundation_Models.ipynb

Contributing

We welcome contributions through:

License

MIT License - See LICENSE for details

Citation

If using this work in research, please cite:

@article{gferreira2025rescale4dl,
  title={ReScale4DL: Balancing Pixel and Contextual Information for Enhanced Bioimage Segmentation},
  author={Ferreira, Mariana G. and Saraiva, Bruno M. and Brito, Antonio D. and Pinho, Mariana G. and Henriques, Ricardo and G{\'o}mez-de-Mariscal, Estibaliz },
  journal={bioRxiv},
  year={2025},
  publisher = {Cold Spring Harbor Laboratory},
  URL = ,
  eprint = ,
}

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

rescale4dl-0.1.1.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

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

rescale4dl-0.1.1-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file rescale4dl-0.1.1.tar.gz.

File metadata

  • Download URL: rescale4dl-0.1.1.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for rescale4dl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bcdacbd635e2e1a9af000d366a44d4963411465728a29cec9446b2770f8ccecf
MD5 ec924bae22c037044d5c7c62f41320b9
BLAKE2b-256 7aef2d7be394a567838f93e60462f5618f1d690299caef58c32df8c42053f815

See more details on using hashes here.

File details

Details for the file rescale4dl-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for rescale4dl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30ed7c477b191c7383c3f6f0500f0c10ec1e720c80928a7b6f91d7f47742133b
MD5 7f084c3b565b4176e65ce03269a709fe
BLAKE2b-256 9bf6519bba6bbb5f40cec7e33e5406316bf0ca3cecee3a5697b0e9d6a249ed2d

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