Commit d95e6f93 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][image registration] Sum data just once, considering now data is 3D

parent b0f8dd1d
......@@ -26,7 +26,7 @@
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "04/03/2020"
__date__ = "26/05/2021"
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])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment