Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
napari-3dtimereg
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaëlle LETORT
napari-3dtimereg
Commits
9001f04c
Commit
9001f04c
authored
1 year ago
by
Gaelle Letort
Browse files
Options
Downloads
Patches
Plain Diff
with help page
parent
f835f288
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
src/napari_3dtimereg/movieRegistration.py
+19
-1
19 additions, 1 deletion
src/napari_3dtimereg/movieRegistration.py
with
20 additions
and
2 deletions
setup.cfg
+
1
−
1
View file @
9001f04c
[metadata]
name
=
napari-3dtimereg
version
=
0.0.
3
version
=
0.0.
4
description
=
Registration of 3D movies applied to all channels
long_description
=
file: README.md
long_description_content_type
=
text/markdown
...
...
This diff is collapsed.
Click to expand it.
src/napari_3dtimereg/movieRegistration.py
+
19
−
1
View file @
9001f04c
...
...
@@ -73,13 +73,26 @@ def start():
cview
.
gamma
=
0.95
return
getChanels
()
def
show_help_chanel
():
"""
Open the gitlab page with the documentation
"""
import
webbrowser
webbrowser
.
open_new_tab
(
"
https://gitlab.pasteur.fr/gletort/napari-3dtimereg/#choose-movie-and-reference-chanel
"
)
return
def
show_help_align
():
"""
Open the gitlab page with the documentation
"""
import
webbrowser
webbrowser
.
open_new_tab
(
"
https://gitlab.pasteur.fr/gletort/napari-3dtimereg/#calculate-alignement
"
)
return
def
getChanels
():
"""
Choose the chanel on which to calculate the alignement
"""
@magicgui
(
call_button
=
"
Update
"
,
reference_chanel
=
{
"
widget_type
"
:
"
Slider
"
,
"
min
"
:
0
,
"
max
"
:
refimg
.
shape
[
2
]
-
1
},
help
=
{
"
widget_type
"
:
"
PushButton
"
,
"
value
"
:
False
,
"
name
"
:
"
help
"
},
)
def
get_chanel
(
reference_chanel
=
0
,
):
def
get_chanel
(
reference_chanel
=
0
,
help
=
False
,
):
global
refchanel
global
resimg
global
colchan
...
...
@@ -109,6 +122,8 @@ def getChanels():
#cview.contrast_limits = quants
do_registration
()
get_chanel
.
help
.
clicked
.
connect
(
show_help_chanel
)
wid
=
viewer
.
window
.
add_dock_widget
(
get_chanel
,
name
=
"
Choose chanel
"
)
return
wid
...
...
@@ -294,6 +309,7 @@ def do_registration():
spacing_two
=
{
"
widget_type
"
:
"
LiteralEvalLineEdit
"
},
spacing_three
=
{
"
widget_type
"
:
"
LiteralEvalLineEdit
"
},
spacing_four
=
{
"
widget_type
"
:
"
LiteralEvalLineEdit
"
},
help
=
{
"
widget_type
"
:
"
PushButton
"
,
"
value
"
:
False
,
"
name
"
:
"
help
"
},
)
def
get_paras
(
reference_frame
=
"
previous
"
,
show_log
=
False
,
...
...
@@ -309,6 +325,7 @@ def do_registration():
spacing_two
=
2
,
spacing_three
=
1
,
spacing_four
=
1
,
help
=
False
,
):
global
results_transform_parameters_aff
,
results_transform_parameters
...
...
@@ -339,6 +356,7 @@ def do_registration():
show_advanced
(
False
)
get_paras
.
show_advanced_parameters
.
changed
.
connect
(
show_advanced
)
get_paras
.
help
.
clicked
.
connect
(
show_help_align
)
wid
=
viewer
.
window
.
add_dock_widget
(
get_paras
,
name
=
"
Calculate alignement
"
)
return
wid
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment