-
Notifications
You must be signed in to change notification settings - Fork 7
/
napari-3dtimereg.json
93 lines (93 loc) · 7.56 KB
/
napari-3dtimereg.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "napari-3dtimereg",
"display_name": "3D Movies Registration",
"visibility": "public",
"icon": "",
"categories": [],
"schema_version": "0.2.1",
"on_activate": null,
"on_deactivate": null,
"contributions": {
"commands": [
{
"id": "napari-3dtimereg.registration",
"title": "3D Movies Registration",
"python_name": "napari_3dtimereg.movieRegistration:start",
"short_title": null,
"category": null,
"icon": null,
"enablement": null
}
],
"readers": null,
"writers": null,
"widgets": [
{
"command": "napari-3dtimereg.registration",
"display_name": "Do 3D movie registration",
"autogenerate": false
}
],
"sample_data": null,
"themes": null,
"menus": {},
"submenus": null,
"keybindings": null,
"configuration": []
},
"package_metadata": {
"metadata_version": "2.1",
"name": "napari-3dtimereg",
"version": "0.0.6",
"dynamic": null,
"platform": null,
"supported_platform": null,
"summary": "Registration of 3D movies applied to all channels",
"description": "# napari-3dtimereg\n\n[![License BSD-3](https://img.shields.io/pypi/l/napari-3dtimereg.svg?color=green)](https://gitlab.pasteur.fr/gletort/napari-3dtimereg/-/blob/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-3dtimereg.svg?color=green)](https://pypi.org/project/napari-3dtimereg)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-3dtimereg.svg?color=green)](https://python.org)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-3dtimereg)](https://napari-hub.org/plugins/napari-3dtimereg)\n\nTemporal 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.\n\nAdaptated from [multireg](https://gitlab.pasteur.fr/gletort/multireg) for temporal movies.\nFor a tutorial on using `elastix` for registration, see [this tutorial](https://m-albert.github.io/elastix_tutorial/intro.html).\n\n\n----------------------------------\n## Installation\n\n* You can install the plugin directly in `Napari` by going to `Plugins>Install/Uninstall plugins` and search for `napari-3dtimereg`\n\n* Or you can install `napari-3dtimereg` via [pip]:\n\n pip install napari-3dtimereg\n\n\n## Usage\n\nYou can launch `3dtimereg` in napari by going to `Plugins>Do 3D movie registration (napari-3dtimereg)`.\n\n### Choose movie and reference chanel\n\nFirst, 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.\n\nChoose 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.\n\n### Calculate temporal alignement\n\nThe 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.\nYou can tune several parameters in this plugin:\n\n![parameters screenshot](./imgs/parameters.png \"Registration parameters\")\n\nThe other parameters are parameters to use [itk-elastix](https://elastix.lumc.nl/) to calculate the registration.\n* `show log`: to see the log of Elastix calculation\n* `do rigid`: performs a rigid (affine) transformation step, that allowed to correct for translations/rotations.\n* `do bspline`: performs a b-spline based transformation step, that allowed for local deformations in the image.\n* `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.\n* `final order`: is the final order of the B-Splines used for the registration. \n* `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.\n* `final spacing`: is the physical spacing of the smallest resolution.\n* `iterations`: are the maximum number of iterations allowed to minimize the distance between the two images for each resolution and type of registration.\n\nIf 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.\n\nFor 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.\n\n### Create the final aligned movie\n\nWhen 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.\n\nIf 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. \n\n## License\n\nDistributed under the terms of the [BSD-3] license, \"napari-3dtimereg\" is free and open source software\n\n\n[napari]: https://github.com/napari/napari\n[@napari]: https://github.com/napari\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n",
"description_content_type": "text/markdown",
"keywords": null,
"home_page": "https://gitlab.pasteur.fr/gletort/napari-3dtimereg",
"download_url": null,
"author": "Ga\u00eblle Letort",
"author_email": "[email protected]",
"maintainer": null,
"maintainer_email": null,
"license": "BSD-3-Clause",
"classifier": [
"Framework :: napari",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Image Processing"
],
"requires_dist": [
"numpy",
"napari",
"magicgui",
"qtpy",
"tifffile",
"imaris-ims-file-reader",
"czifile",
"itk ==5.3.0",
"itk-registration",
"itk-elastix"
],
"requires_python": ">=3.8",
"requires_external": null,
"project_url": [
"Bug Tracker, https://gitlab.pasteur.fr/gletort/napari-3dtimereg/issues",
"Documentation, https://gitlab.pasteur.fr/gletort/napari-3dtimereg#README.md",
"Source Code, https://gitlab.pasteur.fr/gletort/napari-3dtimereg"
],
"provides_extra": null,
"provides_dist": null,
"obsoletes_dist": null
},
"npe1_shim": false
}