Function getIntensityCentroid