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
XRD
darfix
Commits
d95e6f93
Commit
d95e6f93
authored
May 26, 2021
by
Julia Garriga Ferrer
Browse files
[core][image registration] Sum data just once, considering now data is 3D
parent
b0f8dd1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/imageRegistration.py
View file @
d95e6f93
...
...
@@ -26,7 +26,7 @@
__authors__
=
[
"J. Garriga"
]
__license__
=
"MIT"
__date__
=
"
04
/0
3
/202
0
"
__date__
=
"
26
/0
5
/202
1
"
import
enum
...
...
@@ -59,7 +59,7 @@ def compute_com(data):
:param numpy.ndarray data: stack of images.
:returns: the vector of intensities and the com.
"""
intensity
=
data
.
sum
(
axis
=
1
)
.
sum
(
axis
=
1
)
intensity
=
data
.
sum
(
axis
=
1
)
return
intensity
,
int
(
center_of_mass
(
intensity
)[
0
])
...
...
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