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
088436c3
Commit
088436c3
authored
Oct 01, 2020
by
Pierre Paleo
Committed by
Pierre Paleo
Oct 08, 2020
Browse files
resources.cor: use CenterOfRotationAdaptiveSearch
parent
596e5039
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/resources/cor.py
View file @
088436c3
import
numpy
as
np
from
silx.io
import
get_data
from
..preproc.ccd
import
FlatField
from
..preproc.alignment
import
CenterOfRotation
from
..preproc.alignment
import
CenterOfRotation
,
CenterOfRotationAdaptiveSearch
class
CORFinder
:
"""
...
...
@@ -32,6 +32,7 @@ class CORFinder:
self
.
_default_search_method
=
"centered"
if
self
.
halftomo
:
self
.
_default_search_method
=
"global"
self
.
cor
=
CenterOfRotationAdaptiveSearch
()
def
_get_angles
(
self
,
angles
):
dataset_angles
=
self
.
dataset_info
.
rotation_angles
...
...
@@ -114,7 +115,7 @@ class CORFinder:
shift
=
self
.
cor
.
find_shift
(
self
.
radios
[
0
],
np
.
fliplr
(
self
.
radios
[
1
]),
low_pass
=
1
,
high_pass
=
20
,
global_search
=
True
low_pass
=
1
,
high_pass
=
20
)
else
:
shift
=
self
.
cor
.
find_shift
(
...
...
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