python package for registering multimodal whole slide microscopy images
Project description
wsireg
Multi-modal or mono-modal whole slide image registration in a graph structure for complex registration tasks using elastix.
Documentation: https://wsireg.readthedocs.io.
Features
Graph based approach to defining modalities and arbitrary transformation paths between associated images
Use of elastix (through ITKElastix) to perform registration
Support for linear and non-linear transformation models
Transform associated data (masks, shape data) along the same path as the images.
Supports images converted to OME-TIFF using bioformats2raw -> raw2ometiff pipeline
All registered images exported as pyramidal OME-TIFF or OME-zarr that can be viewed in software such as Vitessce , vizarr, QuPath, OMERO or any platform that supports these formats.
All transforms for complex registration paths are internally composited and only 1 interpolation step is performed, avoiding accumulation of interpolation error from many registrations
Shape data (polygons, point sets, etc.) in GeoJSON format (future portable format for QuPath detection/annotation data) can be imported and transformations applied producing a modified GeoJSON
Some support for reading native WSI formats: currently reads .czi and .scn but could be expanded to other formats supported by python package tifffile
History
0.0.2 (2021)
First release on PyPI.
0.2.1 (2021-04-14)
- add RegImage sub-classes for different file types
TiffFileRegImage (.scn, .ndpi,.tiff,.tif) : uses dask + zarr to do memory-efficient computation of necessary data for registration / transformation
CziRegImage (.czi) : Carl Zeiss image format, can perform read-time pre-processing like RGB -> greyscale or selection of individual channels to limit memory footprint
OmeTiffRegImage (.ome.tiff,ome.tif): uses TiffFile to read images and parses OME metadata to get interleaved RGB information
MergeRegImage (meta): used to transform multiple images’ channels to a single OME-TIFF after registration if they output to the same size and data type (i.e. for cyclic IF)
NpRegImage (np.ndarray): Supports adding a registration image from a numpy array
SitkRegImage (everything else): uses SimpleITK to read images as a last resort. Will read entire image into memory!
- support masks for registration
Masks can be used in elastix to define pixels used in metric calculation
add ability to automatically crop images based on associated masks’s bounding box (can be useful if image dimensions differ greatly)
use RegTransform class to manage transformations
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
File details
Details for the file wsireg-0.2.1.tar.gz
.
File metadata
- Download URL: wsireg-0.2.1.tar.gz
- Upload date:
- Size: 71.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2694ebc12afc7586b86e188df7e19029294f3e656f1933e02efc47f094b7a16a |
|
MD5 | e2d990de705ae9bee169501cc354bcc1 |
|
BLAKE2b-256 | f72fca648ce5bb2feeed4a3cbedfd38655e319881819851e4239f9f4251f02ae |
File details
Details for the file wsireg-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: wsireg-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 65.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f899116c15076b3054ac7286dadcfec005f8ba50c231b09ffba963d3837b8561 |
|
MD5 | e12c1e145467ec5b764cf6f52f6651c3 |
|
BLAKE2b-256 | 9b3df2c32859d8d53d3e528828886cf112f8107dd506b8974c6c33cfd4b40b51 |