darfix.core.imageRegistration.compute_com#

darfix.core.imageRegistration.compute_com(data)[source]#

Compute the center of mass of a stack of images. First it computes the intensity of every image (by summing its values), and then it uses scipy center_of_mass function to find the centroid.

Parameters:

data (numpy.ndarray) – stack of images.

Returns:

the vector of intensities and the com.