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
406955aa
Commit
406955aa
authored
Jun 24, 2020
by
myron
Browse files
make sure that the filter does not change the default data_type
parent
3a1bfdd8
Pipeline
#28122
failed with stages
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/alignment.py
View file @
406955aa
...
...
@@ -361,7 +361,7 @@ class AlignmentBase(object):
img
.
shape
[
-
2
:],
cutoff_lowpass
=
low_pass
,
cutoff_highpass
=
high_pass
)
# fft2 and iff2 use axes=(-2, -1) by default
img
=
my_ifft2
(
my_fft2
(
img
)
*
my_fft_layout_adapt
(
img_filter
)).
real
img
=
my_ifft2
(
my_fft2
(
img
)
*
my_fft_layout_adapt
(
img_filter
.
astype
(
self
.
data_type
)
)).
real
if
median_filt_shape
is
not
None
:
img_shape
=
img
.
shape
...
...
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