def raw_moment(data, iord, jord):
    nrows, ncols = data.shape
    y, x = numpy.mgrid[:nrows, :ncols]
    data = data * x**iord * y**jord

    return data.sum()
dataset/ETHPy150Open basilfx/Course-Face3D/face3d/utils.py/raw_moment/original