Skip to main content

Image registration routines for Imagedata

Project description

#################################
Image registration with imagedata
#################################

|Docs Badge| |buildstatus| |coverage| |pypi|


Helper modules to do
image registration for `Imagedata` **Series** objects.

Available modules
#################

NPreg
-----

`NPreg` by Erlend Hodneland is implemented in Python,
and available as a self-supported PyPi package.
There are three implementations of `NPreg`:

* Pure Python/NumPy code. Source code will run on any Python platform.
* Cython code. Binary code compiled for supported platforms.
* CuPy/CUDA code. Source code which will run on platforms with a working `CuPy` and CUDA Toolkit.

FSL
---

`FSL`
(https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FSL)
has several methods for image registration.
Using `FSL` image registration from Python requires the `FSL` interface from
nipype, as well as a the `FSL` executables.
Each `FSL` method may have different requirements.
The common factor is that `FSL` methods will read and write NIfTI image files.

A function `register_fsl` is provided here.
This function will register a moving Series to a fixed Series.
The default registration method is fsl.MCFLIRT.
The function will accept other registration methods.

ITK Elastix
-----------

The popular `Elastix` GUI is based on the C++ `ITK` image registration routines.
Like the `FSL` methods, there are numerous `Elastix` methods available, all with
different requirements.
The `SimpleElastix`
(https://simpleelastix.readthedocs.io/index.html)
Python library is one particular interface to the `Elastix/ITK` routines.

Prerequisites
#############

NPreg on CUDA GPU
-----------------

imagedata-registration will benefit from a CUDA GPU. If this is available,
install `CuPy` (https://docs.cupy.dev).

* First, install the `CUDA Toolkit`: see https://developer.nvidia.com/cuda-toolkit.

* There are different options for installing `CuPy`. See:
https://docs.cupy.dev/en/stable/install.html

FSL
---

The imagedata-registration FSL module is a wrapper around the official FSL tools.
A native FSL installation is required on the host computer.

SimpleElastix
-------------

SimpleElastix must be installed separately:

.. code-block::

pip install SimpleITK-SimpleElastix

Installation
############

.. code-block::

pip install imagedata-registration

Examples
########

`NPreg examples <docs/NPreg.rst>`_

`FSL examples <docs/FSL.rst>`_

`SimpleElastix examples <docs/SimpleElastix.rst>`_


.. |Docs Badge| image:: https://readthedocs.org/projects/imagedata_registration/badge/
:alt: Documentation Status
:scale: 100%
:target: https://imagedata_registration.readthedocs.io

.. |buildstatus| image:: https://github.com/erling6232/imagedata_registration/actions/workflows/build_wheels.yml/badge.svg
:target: https://github.com/erling6232/imagedata_registration/actions?query=branch%3Amain
:alt: Build Status

.. _buildstatus: https://github.com/erling6232/imagedata_registration/actions

.. |coverage| image:: https://codecov.io/gh/erling6232/imagedata_registration/branch/main/graph/badge.svg?token=1OPGNXJ8Z3
:alt: Coverage
:target: https://codecov.io/gh/erling6232/imagedata_registration

.. |pypi| image:: https://img.shields.io/pypi/v/imagedata-registration.svg
:target: https://pypi.python.org/pypi/imagedata-registration
:alt: PyPI Version

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

imagedata-registration-0.2.2.tar.gz (283.2 kB view details)

Uploaded Source

Built Distributions

imagedata_registration-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

imagedata_registration-0.2.2-cp311-cp311-macosx_10_9_x86_64.whl (901.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

imagedata_registration-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

imagedata_registration-0.2.2-cp310-cp310-macosx_10_9_x86_64.whl (902.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

imagedata_registration-0.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

imagedata_registration-0.2.2-cp39-cp39-macosx_10_9_x86_64.whl (902.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

imagedata_registration-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

imagedata_registration-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl (902.3 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file imagedata-registration-0.2.2.tar.gz.

File metadata

File hashes

Hashes for imagedata-registration-0.2.2.tar.gz
Algorithm Hash digest
SHA256 89a4768b12ed7fd329f3eace2a42155f78674a4a4d2423089bf992e1205c69b7
MD5 9f9eada1f1fb229401f8660545866404
BLAKE2b-256 5e9734d26bfa1dd6dc2654f2e9682e1b75145e5ddcde5adecd7b56a89fa2d8b3

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f38962e47ca4453cace658dc1b8d919c5acaf1d95746156ca1e05e9ae8a9965
MD5 ca4cbb00669c1aed89150a0af01ec4c1
BLAKE2b-256 11f252b4d4ce16585ad37788e71f09830cffddee3942e1fef373f54a1fa2a356

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b57e59af3458ec44a2018c0f5961a82cdae3ac9762309bb4b0a3baecf591460a
MD5 71a914599ace4dd798b49184bfbc4b99
BLAKE2b-256 e9e3b7294c8dfa3aafd555bd815459c8ccfeac4891062675a45d160bcd5f7613

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ef6529767b270df144ce37defa10c2a4f8c4c54ae27b53e3845a194fa2c0303
MD5 7420ffbbb6e479569ca8e8e47b111b65
BLAKE2b-256 04286922347ee71e2e50a4b4a3a4f5c78fc66e9b5a78114fda84ffc034836a5a

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f0e1ac67877a98e7c56cc21f2e766984c9ef2706000f82339637f35095538723
MD5 f4cc9e93a847e43c31d2b08a9bf70faa
BLAKE2b-256 5f56c02c81e32f13b595b913baceadaacabc0c6be31d37f93d5bec57752f6af9

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17792054c8eed3e64d3009af6c77d397dcbb627367e7051462091ae951ef0294
MD5 9363c52b9deaf313aee0c2f167dde437
BLAKE2b-256 8a0fd55e847e68e8b335a152051fab0823e9c6c8f2daf3fd8e19dc0774ec6a5d

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1f52ff0701c2658e0a630e884bc95a6ca4001570d260f5792ccd1d302de03fd1
MD5 9af8efc46fb168f266301b26fe8f080a
BLAKE2b-256 fa96935a0ab44cc4f4b6aa71e9ef763bede44f47048ca529b84d7dd552b53805

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8a9bf2ff3371298545c1363f495efe711eff54acb00e5df61cddf19d47bf608
MD5 ba862b22ef132ede1af875f7b9d7757b
BLAKE2b-256 501ce63f46422368042998464474e32e44a5ce581f228056a391e65ae74b9056

See more details on using hashes here.

File details

Details for the file imagedata_registration-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for imagedata_registration-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dc10d4d46a4d88cffeb829f61b6588bab9c27892bd25fbbe48c3d564637a2776
MD5 02542510f6465571c3ee957643ab123e
BLAKE2b-256 100671f82e44af38d3f6d8456f0be8fc2657716c9ed1be190ccd32109f6eecd7

See more details on using hashes here.

Supported by

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