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
7dc012bf
Commit
7dc012bf
authored
Jun 17, 2020
by
Nicola Vigano
Browse files
Alignment: fixed docstring typos
Signed-off-by:
Nicola VIGANÒ
<
nicola.vigano@esrf.fr
>
parent
4faa337b
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/alignment.py
View file @
7dc012bf
...
...
@@ -205,7 +205,8 @@ class AlignmentBase(object):
def
_prepare_image
(
img
,
invalid_val
=
1e-5
,
roi_yxhw
=
None
,
median_filt_shape
=
None
,
high_pass
=
None
,
low_pass
=
None
):
"""Prepare and returns a cropped and filtered image, or array of filtered images if the input is an array of images.
"""
Prepare and returns a cropped and filtered image, or array of filtered images if the input is an array of images.
Parameters
----------
...
...
@@ -230,13 +231,11 @@ class AlignmentBase(object):
When a sequence of two numbers is given then the filter is 1 ( no filtering) till the cutoff
frequency and then a smooth erfc transition to zero is done
Returns
-------
numpy.array_like
The computed filter
"""
img
=
np
.
squeeze
(
img
)
# Removes singleton dimensions, but does a shallow copy
img
=
np
.
ascontiguousarray
(
img
)
...
...
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