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
15b3804e
Commit
15b3804e
authored
Jun 17, 2020
by
Nicola Vigano
Browse files
Alignment: fixed typo
Signed-off-by:
Nicola VIGANÒ
<
nicola.vigano@esrf.fr
>
parent
1b664797
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/alignment.py
View file @
15b3804e
...
...
@@ -372,7 +372,7 @@ class AlignmentBase(object):
def
_compute_correlation_fft
(
img_1
,
img_2
,
padding_mode
):
do_circular_conv
=
padding_mode
is
None
or
padding_mode
==
"wrap"
if
not
do_circular_conv
:
padding
=
np
.
ceil
(
np
.
array
(
img_2
.
img_
shape
)
/
2
).
astype
(
np
.
int
)
padding
=
np
.
ceil
(
np
.
array
(
img_2
.
shape
)
/
2
).
astype
(
np
.
int
)
img_1
=
np
.
pad
(
img_1
,
((
padding
[
0
],),
(
padding
[
1
],)),
mode
=
padding_mode
)
img_2
=
np
.
pad
(
img_2
,
((
padding
[
0
],),
(
padding
[
1
],)),
mode
=
padding_mode
)
...
...
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