Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
69e83782
Commit
69e83782
authored
May 12, 2021
by
Pierre Paleo
Browse files
Plug unsharp_method to pipeline
parent
fa6a56af
Pipeline
#46985
passed with stage
in 5 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nabu/app/fullfield.py
View file @
69e83782
...
...
@@ -559,7 +559,7 @@ class FullFieldPipeline:
self
.
unsharp_mask
=
self
.
UnsharpMaskClass
(
self
.
_get_shape
(
"unsharp_mask"
),
options
[
"unsharp_sigma"
],
options
[
"unsharp_coeff"
],
mode
=
"reflect"
,
method
=
"gaussian"
mode
=
"reflect"
,
method
=
options
[
"unsharp_method"
]
)
self
.
register_callback
(
"unsharp_mask"
,
FullFieldPipeline
.
_reshape_radios_after_phase
)
...
...
nabu/resources/processconfig.py
View file @
69e83782
...
...
@@ -197,7 +197,7 @@ class ProcessConfig:
phase_method
=
self
.
nabu_config
[
"phase"
][
"method"
]
do_ctf
=
phase_method
==
"CTF"
do_pag
=
phase_method
==
"paganin"
do_unsharp
=
self
.
nabu_config
[
"phase"
][
"unsharp_coeff"
]
>
0
do_unsharp
=
self
.
nabu_config
[
"phase"
][
"unsharp_method"
]
is
not
None
and
self
.
nabu_config
[
"phase"
][
"unsharp_coeff"
]
>
0
if
user_rotate_projections
is
None
and
tilt
is
None
:
return
None
if
do_ctf
:
...
...
@@ -301,10 +301,10 @@ class ProcessConfig:
#
# Unsharp
#
if
nabu_config
[
"phase"
][
"unsharp_coeff"
]
>
0
:
if
nabu_config
[
"phase"
][
"unsharp_method"
]
is
not
None
and
nabu_config
[
"phase"
][
"unsharp_coeff"
]
>
0
:
tasks
.
append
(
"unsharp_mask"
)
options
[
"unsharp_mask"
]
=
copy_dict_items
(
nabu_config
[
"phase"
],
[
"unsharp_coeff"
,
"unsharp_sigma"
]
nabu_config
[
"phase"
],
[
"unsharp_coeff"
,
"unsharp_sigma"
,
"unsharp_method"
]
)
#
# -logarithm
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment