On the computational aspects of affine moment invariants for gray