napari-3dtimereg

napari-3dtimereg

Registration of 3D movies applied to all channels

License BSD-3 PyPI Python Version napari hub

Temporal registration of 2D/3D movies on one channel based on itk-elastix, and transpose alignement to the other channels.

Adaptated from multireg for temporal movies.


Installation

  • You can install the plugin directly in Napari by going to Plugins>Install/Uninstall plugins and search for napari-3dtimereg

  • Or you can install napari-3dtimereg via pip:

    pip install napari-3dtimereg

Usage

You can launch 3dtimereg in napari by going to Plugins>Do 3D movie registration (napari-3dtimereg).

Choose movie and reference chanel

First, choose select the movie that you want to register. The plugin will create a folder aligned in the folder of your selected movie where the results will be saved.

Choose the color chanel on which to calculate the registration (reference chanel). Color chanels are numbered from 0 to nchanels, and you can see their respective number in the layer list on the left panel of Napari. Click on Update when the correct chanel is selected to go to the registration calculation step.

Calculate alignement

If the reference frame parameter is set to previous, the registration of each frame will be calculated by comparing it to its previous frame (previously aligned). You can also choose to calculate the alignement of all frames compared to the middle (temporally) frame or all frames compared to the first frame of the movie.

parameters screenshot

The other parameters are parameters to use itk-elastix to calculate the registration.

  • show log: to see the log of Elastix calculation
  • do rigid: performs a rigid (affine) transformation step, that allowed to correct for translations/rotations.
  • do bspline: performs a b-spline based transformation step, that allowed for local deformations in the image.
  • show advanced parameters: to control the parameters used in the rigid and/or bspline transformations. These parameters control the size of the local registrations calculated, the resolutions at which the transformations are calculated, and can thus greatly impact the results.

If both rigid and bspline transformations, the program first applies the rigid transformation to allow for a global registration of the images. Then it will performs the second step of b-spline transformation that can includes local deformations.

For each frame, after calculating the registration on the reference chanel, the plugin will apply the calculated transformation to all the other color chanels of the initial movie. All results are saved as separated images in the aligned folder during the computation.

Create the final aligned movie

When all frames have been processed, each color chanel and each frame have been saved in the aligned folder as separated images. This is usefull to calculate the registration on large movies without having to keep all the intermediates and calculated images in memory. You can directly use these separated images, or reconstruct a single composite movie of the result.

If you click on Concatenate aligned images on the plugin interface, the plugin will create a single composite movie from the aligned images, save it and delete the separated images in the aligned folder.

License

Distributed under the terms of the BSD-3 license, "napari-3dtimereg" is free and open source software

Version:

  • 0.0.4

Last updated:

  • 05 April 2024

First released:

  • 05 April 2024

License:

Supported data:

  • Information not submitted

Plugin type:

  • Information not submitted

GitHub activity:

  • Stars: 0
  • Forks: 0
  • Issues + PRs: 0

Python versions supported:

Operating system:

Requirements:

  • numpy
  • napari
  • magicgui
  • qtpy
  • tifffile
  • imaris-ims-file-reader
  • czifile
  • itk==5.3.0
  • itk-registration
  • itk-elastix

Sign up to receive updates