# -*- coding: utf-8 -*- [docs]class Momenta: [docs] def center_of_mass(img): """ Computes the center of mass/bright (pixel/location) """ return ndi.center_of_mass(img)