Skip to main content

Some scripts to register images in space and time

Project description

Registration tools

Purpose and "history"

This repository is about two scripts to do spatial and temporal registration of 3D microscopy images. It was initially developed to help friends with their ever moving embryos living under a microscope. I found that actually quite a few people were interested so I made a version of it that is somewhat easier to use.

In theory, the main difficulty to make the whole thing work is to install the different libraries.

Credits

The whole thing is just a wrapping of the amazing blockmatching algorithm developed by S. Ourselin et al. and currently maintained Grégoire Malandin et al.@Team Morpheme - inria (if I am not mistaking).

Installation

conda and pip are required to install registration-tools

We recommand to install the registration tools in a specific environement (like conda). For example the following way:

conda create -n registration python=3.10

You can then activate the environement the following way:

conda activate registration

For here onward we assume that you are running the commands from the registration conda environement.

Then, to install the whole thing, it is necessary to first install blockmatching. To do so you can run the following command:

conda install vt -c morpheme

Then, you can install the 3D-registration library either directly via pip:

pip install 3D-registration

Or, if you want the latest version, by specifying the git repository:

pip install git+https://github.com/GuignardLab/registration-tools.git

Troubleshooting

  • Windows:

    If you are trying to run the script on Windows you might need to install pthreadvse2.dll.

    It can be found there: https://www.pconlife.com/viewfileinfo/pthreadvse2-dll/ . Make sure to download the version that matches your operating system (32 or 64 bits, most likely 64).

Usage

Most of the description on how to use the two scripts is described in the manual (Note that the installation part is quite outdated, the remaining is ok).

That being said, once installed, one can run either of the scripts from anywhere in a terminal by typing:

time-registration

or

spatial-registration

The location of the json files or folder containing the json files will be prompted and when provided the registration will start.

It is also possible to run the registration from a script/notebook the following way:

from registrationtools import TimeRegistration
tr = TimeRegistration('path/to/param.json')
tr.run_trsf()

or

from registrationtools import TimeRegistration
tr = TimeRegistration('path/to/folder/with/jsonfiles/')
tr.run_trsf()

or

from registrationtools import TimeRegistration
tr = TimeRegistration()
tr.run_trsf()

and a path will be asked to be inputed.

Example json files

Few example json files are provided to help the potential users. You can find informations about what they do in the manual.

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

3d_registration-0.5.3.tar.gz (211.6 kB view details)

Uploaded Source

Built Distribution

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

3d_registration-0.5.3-py3-none-any.whl (219.4 kB view details)

Uploaded Python 3

File details

Details for the file 3d_registration-0.5.3.tar.gz.

File metadata

  • Download URL: 3d_registration-0.5.3.tar.gz
  • Upload date:
  • Size: 211.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for 3d_registration-0.5.3.tar.gz
Algorithm Hash digest
SHA256 ea3e044f10870c0a44f63763f5711d7a51b183a2c969e5966968c9cf4f75a86e
MD5 17f03858ba20e926ade5a595b7b6fe23
BLAKE2b-256 2d723f7ccdeb307252c433a5fb1f8807b457f9675e3539cb361edeb98429d596

See more details on using hashes here.

File details

Details for the file 3d_registration-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for 3d_registration-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e0f1933a3d8f538caf636dac83c4e0f98cd3f8e1d3a72111b65afc2165efd9
MD5 f02d2aaf7fee7758e5fcb999156ca0a3
BLAKE2b-256 251a072bf47013340b7363b074f4b6bafe0a29ba500b88a11e22a0e877846702

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