The empirical moment matrix and its application in computer vision