Temporal registration of 2D/3D movies on one channel based on [itk-elastix](https://pypi.org/project/itk-elastix/), and transpose alignement to the other channels.
Adaptated from [multireg](https://gitlab.pasteur.fr/gletort/multireg) for temporal movies.
For a tutorial on using `elastix` for registration, see [this tutorial](https://m-albert.github.io/elastix_tutorial/intro.html).
----------------------------------
## Installation
...
...
@@ -29,9 +31,10 @@ First, choose select the movie that you want to register. The plugin will create
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
### Calculate temporal 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.
The registration is calculated iteratively from one frame to another. Thus the first frame is not moved and all the other frames are aligned to it.
@@ -40,6 +43,10 @@ The other parameters are parameters to use [itk-elastix](https://elastix.lumc.nl
*`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.
*`final order`: is the final order of the B-Splines used for the registration.
*`resolution`: is the number of consecutives resolutions at which the registration will be made. First the registration is made at the lowest level of resolution, correcting global deformations/motions, then at each step, the registration is done on higher resolution, allowing to correct for more local deformations.
*`final spacing`: is the physical spacing of the smallest resolution.
*`iterations`: are the maximum number of iterations allowed to minimize the distance between the two images for each resolution and type of registration.
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.