Efficient Legendre moment, computation for grey level images