image2image-reg
Whole slide image registration using elastix and/or Valis-WSI.
Overview
image2image-reg is a library for whole-slide image registration. It provides a command-line interface for performing
registration, transformation and evaluation of whole-slide image registrations. The library is inspired by wsireg and
valis. In fact, the registration workflow is a complete rewrite of the wsireg library to provide more flexibility
and control over the registration process.
Differences from wsireg
- [DONE] Registrations are organized into
projects. Project is a collection of configuration, logs, visualisations and images. This should provide a more structured way of organizing your images and not cluttering the working directory. - [WIP] Registrations can be initialized with
affinematrix (to get a good starting point) - this will allow for faster registration and hopefully better results. - [WIP] Registrations can be focused on specific region of interest (mask) - while it's possible to do this in
wsireg, it's not as straightforward as it should be. - [DONE] Better support for point and GeoJSON data.
- [DONE] Better CLI interface - more structured and easier to use.
- [DONE] Better logging - more informative and easier to debug.
- [DONE] Reusable registrations - since all registration data is contained within the project, it's much easier to re-run certain tasks (such as export images) without having to re-run the registration process.
Planned features:
- [WIP] Better support for
Valisregistrations. - [WIP] Better support for masks.
- Add better measures and means of testing effectiveness of registration.
- Add better multi-processing support.
- Add 3D module for elastiX registrations.
Getting started
The library provides a command-line interface which can be invoked:
i2reg --help
Will generate output like this:
Usage: i2reg [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Launch registration app.
Options:
--version Show the version and exit.
--dev Flag to indicate that CLI should run in development mode and catch all errors.
--no_color Flag to disable colored logs (essential when logging to file).
-q, --quiet Minimal output - only errors and exceptions will be shown.
--debug Maximum output - all messages will be shown.
-v, --verbose Verbose output. This is additive flag so `-vvv` will print `INFO` messages and -vvvv will print
`DEBUG` information.
--log FILE Write logs to file (specify log path).
-h, --help Show this message and exit.
Registration:
elastix Elastix whole-slide image registration.
valis Valis registration.
simple-valis Valis registration.
Utility:
convert Convert images to pyramidal OME-TIFF or OME-Zarr.
merge Export images.
transform Transform command.
Contributing
Contributions are always welcome. Please feel free to submit PRs with new features, bug fixes, or documentation improvements.
git clone https://github.com/vandeplaslab/image2image-reg.git
uv sync --group dev
uv run pytest
The project depends on image2image-io, which can pull geospatial packages such as rasterio. If your platform cannot
use a prebuilt wheel, install GDAL development headers first so gdal-config is available before syncing dependencies.
Metadata
Release files for image2image-reg 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| image2image_reg-0.3.3.tar.gz | 184.5 kB | Without provenance | Details for image2image_reg-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| image2image_reg-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for image2image_reg-0.3.3-py3-none-any.whl |
Total release size: 353.1 kB
Release files / image2image_reg-0.3.3.tar.gz
| Download URL | image2image_reg-0.3.3.tar.gz |
|---|---|
| Size | 184.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eea6b9ef1df681bfd7c79110899c2c0e894a6036b7117f93be9ad9a219bf0f24
|
|
BLAKE2b-256 checksum How to use checksums |
3c09af6f6bdac005084d3aa1b38bdb175a0adb91d4bcc5e8ad5bb80174a87bbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / image2image_reg-0.3.3-py3-none-any.whl
| Download URL | image2image_reg-0.3.3-py3-none-any.whl |
|---|---|
| Size | 168.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f136156febac97e541cc8745ac2dfe97b7e5793f338a0025a8f9fc1e2a83a70a
|
|
BLAKE2b-256 checksum How to use checksums |
3108fcb9e3c020a67fe64ea2a97d6b1b30687093840c438d7c3a3c2bd9588158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for image2image-reg 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.