Nowadays, all digital cameras acquire chromatic images, which are capable of recording complex details. The conventional approach to color image analysis consists of processing the red, green and blue channels separately using digital image processing techniques, and combines the individual output results  . Currently, RGB images are analyzed with orthogonal quaternion moments, which have the advantage of using the quaternion theory to handle color image is that the existing correlation between color components can be taken into consideration  . B. Chen et al. proposed the quaternion moments for color images analysis  . The authors use the Zernike polynomials as the kernel of the quaternion moments defined in a unit circle. However, the computation of quaternion moments requires a transformation to polar coordinates and an approximation of the integral  . The discrete orthogonal moments do not involve any numerical approximation, since the base set is orthogonal in the discrete domain of the image co-ordinate space, the basic functions satisfy exactly the orthogonality property, and thus yield a superior image reconstruction  . The classical discrete orthogonal moments such as Tchebichef  , Krawtchouk  , Hahn  , Meixner  , Charlier  and Racah   moments are defined in the coordinate space of the image and preserve the orthogonality condition  . Has recently been analyzed color images with images reconstruction from the different channels by orthogonal moments such as Charlier  and Racah  moments.
In this article we present an analysis based on a reconstruction error of color images using different orders of moments, which allows knowing the capacity of reconstruction with different set of classical orthogonal moments is analyzed, also the recovery error graphs that were obtained are presented.
2. Discrete Orthogonal Moments
The discrete orthogonal moments have the ability to represent global features and describe its most important characteristics, which have a kernel base of discrete orthogonal polynomials  .
The orthogonal moments are defined as follows:
where and are a set of discrete orthogonal is an image function and m, n are the image size.
Considering that a color image is formed by RGB channels they can be defined as,
The calculation of the orthogonal moments is defined as
where y are polynomial basic functions, is a color image, and c represents the RGB channel of the image.
Discrete Orthogonal Polynomials
A general way to obtain normalized discrete orthogonal polynomials is by the following recurrence relation (H. Zhu et al.  ).
Table 1. Values of the terms A, B, C, D and E of the following polynomial with size N: Tchebichef , Krawtchouk y Charlier .
Table 2. Values of the terms A, B, C, D and E of the following polynomial with size N: Hahn , Meixner .
A special case of the discrete orthogonal polynomials are the Racah polynomials, which are calculated by the following relation of recurrence with respect to n   .
where are terms independent of Racah polynomials and ,
Table 3. Zero and first order polynomials of the following functions: Tchebichef , Krawtchouk y Charlier .
Table 4. Zero and first order polynomials of the following functions: Hahn , Meixner y Racah.
are the initial values of Zero and first order polynomials shown in “Table 5”.
Below, the graphs obtained from the calculation of the first 5 polynomials of the six families of discrete orthogonal moments are shown in Figure 1.
3. RGB Color Images Reconstruction
One of the different applications of the moments’ functions with orthogonal base is the reconstruction of color images , which allows to determine the number of descriptors that can characterize the color image.
It is possible to reconstruct an image from its moments using the respective inverse transformation. The reconstruction of an image is given by  :
where and are polynomial basis functions and are the moments of the image to be reconstructed.
The reconstruction of a color image is given by:
where y are polynomial basis functions and are the moments of the image to be reconstructed in its three RGB channels.
Table 5. Values to obtain the Racah polynomials .
RGB Image Reconstruction Error
To evaluate the efficiency of the moments, the reconstruction metric based on the normalized image reconstruction error (NIRE) is used, which is defined as the normalized square error between the input image and the reconstructed image , expressed by  :
Therefore, the measurement for the reconstruction error of a color image that takes into account the three channels is given by:
4. Experimental Results
Next are the results obtained with the proposed algorithm for video encryption and recovery of the following three grayscale test images with dimensions of 512 ×
Figure 1. The first ten polynomials n = 0, 1, ・・・, 4. (a) Tchebichef polynomials, (b) Krawtchouk polynomials, (c) Charlier polynomials, (d) Hahn polynimials, (e) Meixner polynomials and (f) Racah polynomials.
512 pixels presented in Figure 2.
We have reconstructed these test images shown in Figure 2 with the moments of the different families of classical polynomials with different orders of reconstruction. The results obtained with the reconstruction are shown in “Tables 6-8”.
Figure 2. Grayscale image of 512 × 512 used as images for video encryption (a) “lena.jpg”, (b) “mandril.jpg” and (c) “plumas.jpg”.
Table 6. Comparison of some pictures of the reconstruction orders of image 1, “lena” with each one of the moments sets mentioned.
Table 7. Comparison of some pictures of the reconstruction orders of image 2, “Mandril” with each one of the moments sets mentioned.
The NIRE graphics of the reconstruction comparison of the three images with the moments sets are shown in Figure 3.
According to the value distributions of each set of orthogonal polynomials as shown in Figure 1, it can be observed that the distribution of some polynomials as Tchebichef and Hahn are more uniform in comparison to Krawtchouk, Meixner, Charlier and Racah polynomials. Therefore, better results would be
Table 8. Comparison of some pictures of the reconstruction orders of image 3, “Plumas” with each one of the moments sets mentioned.
expected with these polynomials.
Rectangular moments were used for the reconstruction of an image, with which it was possible to examine the performance of the different moments used for the representation of the information, as well as its convergence through the number of moments necessary for the reconstruction of the images.
As can be seen in the results obtained shown in Tables 6-8. The Tchebichef, Hahn and Racah polynomials present a better capacity of description, since they allow to recover the image with a smaller number of reconstruction orders. In
Figure 3. Graphics of the reconstruction comparison of error for images (a) “lena.jpg”, (b) “mandril.jpg” and (c) “plumas.jpg”.
this case with more than 50 orders it can recover almost the entire image.
J. S. Rivera-López thanks CONACyT for the scholarship with number 423649.