A number of papers are contributing to retinal imaging and image analysis.1,2 Retinal researchers and practicians make more and more wide use of the digital images, which causes the need to improve the image processing algorithms. In this paper we stress on an identification of the digital images by applying the photogrammetric methods and random functions theory. The spatial positions of the digital image pixels are defined by the spatial region of the frequencies of color waves, i.e., by radiometric level, applying the Red, Green, Blue (RGB) coding format of the colors spectrum. The theoretical model is based on the stationary random function taking into account that the errors of the color wave frequencies are random and that they are of the same accuracy, i.e., a mean of errors is and their dispersion is , and that the covariance function of the digital images depends only on the difference of the arguments, i.e., on the pixel quantize interval. The estimations of the covariance function of the two digital images or the autocovariance function of the single image are calculated according to random functions, based on the vectors, created from the digital image pixels. The Fourier transformation3,4 or wavelet theory56.7.–8 is used for processing the digital signals. The main goal of this article is to provide the opportunity for a continuous improvement of the core algorithms, driven by performance of the covariance analysis approach. Such algorithms could be used in various areas of research and practice, including public and clinical health, biomedicine, security systems, etc.
Covariance Model of the Light Frequencies Spectrum
Let us analyze the autocovariance and covariance theoretical models of the white light spectrum, which is combination of the colors of different frequencies. The various color systems [RGB, hue, saturation and value (HSV), luma information, in-phase, quadrature (YIQ), hue, lightness and saturation (HLS), etc.] are used to define the digital images. The RGB system is used widely. The image of this system can be easily redone to the image of the other color systems, in which one of the component will be light signal and the other components define the color. It is used in the visualization, because we know that the human eye retina is more sensitive to the changes of the light strength than to the changes of the color itself.
Let us apply a linear expression of the harmonic oscillations equation to describe the light frequencies spectrum:
In real world and in practice, the monochromatic (single fixed-frequency) oscillations do not exist. So, analyzing a single color from the RGB color system, we understand that it is a mix of single color frequencies in the very narrow interval of frequencies .
We will use the first-order members of Eq. (1) in the calculations of the covariance expressions, because an influence of the higher-order members is negligible. The dispersion and, certainly, covariance of the monochromatic oscillations of frequency has expression
The coefficient of correlation of the same frequency is equal to
The covariance of the two fixed different frequencies looks like
The coefficient of correlation of the two fixed different-frequency oscillations, applying Eq. (4), is equal to
Because in nature and in practice the fixed-frequency oscillations do not exist, so for the analysis of the covariance of the light spectrum colors, we will use the signal compositions, applying their interference. The main summing equation of the interference of two frequencies could be written as follows:9
So we have such a linear expression of a sum of two different frequency interferences.
An expression of the random error of the oscillations summing interference will be
We can ignore the last member of Eq. (8), because its influence is not big and its value , when .
The covariance expression of the oscillations summing interference could be written as follows:
Further, Eq. (9) has the following expression:
By using the similar calculations, we could write the formulae of the dispersion of the oscillations summing interference:
The formulae of the correlation coefficient of the two oscillations summing interference:
In further calculations we will adopt .
The accuracy of the phase measurements of the white light colors is equable, i.e., the standard deviations of the oscillation phases of the discrete frequencies are equal, . It comes from the assumption that the distributions of the random errors of the spectrum components are asymptotically similar.
Equations (3), (5), and (12) show that correlation between oscillations of different frequencies does not exist, whereas it exists between oscillations of similar frequencies. The correlation between the compound oscillations of mixed frequencies exists in the case when these oscillations have the components of similar frequencies.
Model of the Covariance Functions of the Digital Images
To develop the theoretical model we will apply the presumption that the errors of the digital image pixel parameters are random. The random function is constructed by spreading the arrow of the digital image pixels according to columns into one-dimensional space along the same coordinate axis. In each column of the pixel arrays the trend of the corresponding column is eliminated. The parameters are the indexes of the pixel color intensities in the RGB format color spectrum. We will accept the random function constructed in such a way as a stationary function (in wide understanding), i.e., its mean and a covariance function depend on the argument difference only, . The pixel arrows of the two segments of the single digital image or segments of the two images ir , accepted as the realizations of the random functions, continuous covariance function could be written as follows:10,11
The covariance function based on the measurement results could be estimated according to the following formulae:
Equation (14) could be applied in the form of the autocovariance and intercovariance function. In the case of the autocovariance function, the segments and are parts of the single digital image, and in the case of intercovariance function, these segments are parts of the two different images.
The estimation of the normalized covariance function is
To eliminate the trend in the column of the image pixels array, we can use the formula
The vector of the means of the columns of the pixels array could be calculated according to
The realization of the random function of the pixels array of the digital image in the form of vectors has an expression
An estimation of the autocovariance matrix of the pixels array of the digital image looks like
An estimation of the covariance matrix of the two digital images or two pixels arrays of the single digital image could be written as follows:
Applying the theory of covariance functions, the influence of the RGB format color spectrum components on the expressions of the covariance functions of the digital images was analyzed. Also, the expressions of the covariance functions of the digital images were estimated using the RGB colors continuous spectrum in the sense of the color tensor.
Results of the Experiment and Analysis
The digital images of the human eye [right oculus dexter (OD) and left oculus sinister (OS)] retinas were used in the analysis. The digital images were taken by ordinary photo camera and coded in JPEG format. Example of the OD retina’s digital image is presented in Fig. 1. The calculations were executed by computer procedures written in MATLAB.
The results of the calculations are presented in Table 1 and in Figs. 2Fig. 3Fig. 4Fig. 5Fig. 6Fig. 7Fig. 8 through 9. In the calculations of the covariance functions, the values of quantise interval were changed from 1 pixel till (in our case, , average number of pixels in the segment of a digital image). An analysis was done applying all RGB color tensors and its components—red R, green G, and blue B colors.
The mean values of the correlation coefficients between the pixels arrays of the digital images.
|Combinations of the arrays of the digital images of the right OD and left OS eyes||Mean value of the correlation coefficient|
|Red R||Green G||Blue B||RGB tensor|
|Between OD pixel columns||0.54||−0.15||−0.17||0.98|
|Between OS pixel columns||0.40||0.13||−0.11||0.98|
|Between OD and OS pixel arrays||−0.42||−0.097||0.11||0.95|
In Table 1 the summarized mean values of the correlation coefficients between the pixels arrays of the digital images of the right OD and left OS eye retinas are shown. The calculations were executed along the single RGB color spectrum components and according to RGB spectrum tensor.
In the calculations of the normalized covariance functions, the results are presented only for red color of RGB spectrum, because the changes of the results for other spectrum colors are negligible.
From the data in Table 1 we can see that the values of the correlation coefficients between OD and OS retina arrays are near zero along all RGB spectrum colors, except red color, where correlation coefficients between OD and OS pixel columns are and . This means that retinas absorb (accept) all the color oscillations at the same level, with an exception R color. The values of the correlation coefficients along all the RGB color tensors are near one and this means there is a very good relation between both retinas along all the RGB frequencies complex.
The change () of the correlation coefficients between the five columns of pixel arrays of the digital image of the OD retina is shown in Fig. 2, the change () of the correlation coefficients between the five columns of pixel arrays of the digital image of the OS retina is shown in Fig. 3, and the change () of the correlation coefficients between the five columns of pixel arrays of the digital images of the OD and OS retinas is presented in Fig. 4.
A normalized autocovariance function of the digital image of the retina OD is presented in Fig. 5. It describes a change of the correlation due to changes of the quantise interval between pixels. The values of the correlation coefficient are decreasing from at to , 1 when . A normalized autocovariance function of the digital image of the retina OS is presented in Fig. 6. The values of the correlation coefficient are changing from at to when . Last results show the decreasing of the correlation coefficient values to at a large value of .
A normalized covariance function of the digital images of the OD and OS retinas is shown in Fig. 7.
The values of covariance function at are not big (); however, when quantise interval is increasing, the values of covariance function are slightly increasing too, and when they are changing in the interval .
A scatter in percentages of the correlation coefficient matrix values of the digital images of the OD and OS retinas is shown in Fig. 8.
The negative correlation occupies about 50% of both array areas. Graphical view of the spatial matrix of the correlation coefficients of the digital images of the OD and OS retinas is presented in Fig. 9.
1. The mean correlation between the pixel columns of the arrays of the digital images of the human eye OD and OS retinas along the single RGB component is not big or even negative. However, the values of the correlation coefficients between pixel columns of the OD and OS arrays applying total RGB color tensors are near one. This means that OD and OS retina correlation is very strong.
2. A normalized autocovariance function of the digital image allows us to determine the change of the correlation depending on the pixel quantise interval. The estimations of the normalized covariance functions do not differ much when applying the different RGB spectrum components. The values of a normalized covariance function of the digital images of the OD and OS retinas are decreasing very slowly and approach zero at a large value of the quantise interval . This shows a very big correlation between the pixels, which are close to each other. The values of a normalized covariance function of the digital images of the OD and OS retinas are not big () in all the quantise intervals. This shows that correlation between OD and OS retinas is weak.
3. It was detected that negative correlation between the pixels occupies of both OD and OS retina array areas and that shows the graphical view of the spatial matrix of the correlation coefficients.
Jonas Skeivalas is a author of 3 monographs and more than 150 research papers. His research interests include processing of measurements with respect to tolerances, adjustment of geodetic networks.