Using of Color Model and Contrast Variation in Wavelet Ideology for Study Megaloblastic Anemia Cells

Processing and analyzing of medical images is one of the priority research areas. At the same time, the processing of images of cells occupies a special place. This is due to the fact that such studies allow for a comprehensive diagnosis of the state of human health, identify and prevent the development of diseases in the early stages. We investigate the effectiveness of using wavelet analysis in color models, taking into account the preliminary change in the contrast of the input image. We consider the HSV color model and the image contrast modification procedure, which is based on the histogram change in the specified range with gamma correction. As a criterion for choosing parameters for changing the contrast of the image, we consider the entropy of the image. We also showed the advisability of using the value of the entropy index for the subsequent improvement of image analysis based on the wavelet ideology. We examined the general sequence of action for the analysis of image of megaloblastic anemia cells. This sequence is based on the choice of parameters for changing the contrast of the image and application of wavelet ideology.


Introduction
The studying of cells (cell structure, cell functions and changes in the cell) is one of the directions in modern medicine.These studies allow: to do a comprehensive diagnosis of the state of human health; identify the disease in its early stages; facilitate the provision of assistance in preventing the development of the disease.
Therefore, the analysis and study of cells occupies a special place in medical research.
We can explore different cells: blood cells-for the diagnosis of various diseases [1] [2]; cells of the gastrointestinal tract-for diagnosis and detection of tumors [3]; mammary cells-for the diagnosis of breast cancer [4]; cervical cells-for the diagnosis of concomitant diseases [5] [6]; and many other types of cells, which allows for more in-depth study of the human body, to study the dynamics of its operation, to diagnose possible diseases.
To study the cell using a microscope, for detailed study of cells, an image of cytological preparations is used.In this case, cytological drugs are the image of various human organs at the cell level.Consequently, the image of cytological preparations can be used to study the functional characteristics of the human body and diagnose possible diseases.
Images of cytological preparations are objects of the micro world.Images of cytological preparations are special images.Such images are characterized by a feature of visualization of objects of the micro world.Images of cytological preparations are created with the help of special methods of representing medical preparations and tissue samples, blood smears.Therefore, the analysis of images of cytological preparations requires the use of various image processing methods in order to obtain information about the objects under study, processes, and phenomena.
At the same time, the complexity of processing images of cytological preparations requires constant study of the methods for their analysis.An additional complication in the processing of images cytological preparations is the variability of the structure of the cell.Such variability can characterize different diagnoses.One of the examples of cell variability is the pathology of the shape and structure of red blood cells.The most complex form, from the point of view of recognition, is megaloblastic anemia cells [7].Aspect of such processing is discussed in this article.

Images of Cytological Preparations as an Object of Research
Currently, analysis of cell structures by means of imaging techniques is very common.Therefore, there are many studies where various image processing methods for analyzing cells.S. Singh and R. Gupta [8], G. Mahendran, R. Babu and D. Sivakumar [9], M. Saha, S. Agarwal, I. Arun, R. Ahmed, S. Chatterjee, P. Mitra and C. Chakraborty Open Journal of Blood Diseases [10], examine the possibility of applying different methods of analyzing in the study images of cytological preparations.The following are considered as the main ones: preliminary processing, the purpose of which is to improve the quality of perception and the subsequent processing of the original image; threshold segmentation, which allows isolating the cell nucleus.
M. Hrebień, P. Steć, T. Nieczkowski and A. Obuchowicz also focus on image pre-processing for image analysis of cytological preparations [11].At the same time, emphasis is placed on the fact that such processing is important for any methods of image segmentation.For this, for example, images can be enhanced with histogram stretching and contrast-limited adaptive histogram equalization [12].
Thus, among methods of preliminary image processing of cytological preparations, it is necessary to distinguish methods of contrast variation, which allow increasing the accuracy of the analysis [13] [14].This cannot only locate the boundaries between objects and background with high accuracy, but also obtain a complete edge and eliminate noise [15].
At the same time, as noted E. Ensink, J. Sinha, A. Sinha, H. Tang, H. M. Calderone, G. Hostetter, J. Winter, D. Cherba, R. E. Brand, P. J. AllenL.F. Sempere and B. B. Haab, the selection of threshold for segmentation depends to a large extend on the baseline characteristics of the original images [16].In this context, it should be borne in mind that images of cytological preparations may have a different intensity of staining of the clinical specimens studied.Therefore for the analysis of images of cytological preparations it is necessary to use a certain color model.Possible errors in segmentation of cells on cytology preparations images as a result of the arising differences in relative intensity of their staining, например, is studied by E. M. van Ingen, L. Leyte-Veldstra, I. Al, G. Wielenga and I. S. Ploem [17], R. Malviya, S. P. K. Karri, J. Chatterjee, M. Manjunatha and A. K. Ray [18], N. Dey, A. S. Ashour, A. S. Ashour and A. Singh [14].
Thus, the application of the procedure for changing the contrast of the image and the choice of the color model for image analysis of images cytological preparations must be combined.An important point is also the choice of a method for analyzing images of cytological preparations.Recently, among methods of analyzing medical images, wavelet ideology has wide application [19] [20] [21].

Wavelet Ideology as a Tool for Analysis
Wavelet ideology is one of the areas of data mining for extracting additional information about processes under study.Such information is extracted from the discontinuity points.Discontinuity point is a sharp intermittent transition in some process.In the image, the point of discontinuity is the brightness change.
Analyzing the point discontinuity us to determine the presence of special characteristics of the analyzed image, as well as the point where these characteristics may arise.This allows you to get more details for analysis [22].Thus we can get the outline of objects in the image.
Ideology of wavelet analysis allows taking into consideration the particular characteristics of the images under study by decomposing source data in a plurality of approximate and detailed coefficients.For this purpose, we use the wavelet transform-this is an image decomposition by the system of wavelets where the wavelets are obtained by shifting and scaling a single function-parent wavelet [23].This decomposition is done according to the rows and columns of the original image.We obtain the matrix of horizontal and vertical discontinuities of the original image.To do this, there's the use of two continuous and integral along the whole axis functions [23] [24]: wavelet-function ( ) determining the details of the signal and generating extended fractions; determining a rough approximation of signal and generating approximation coefficients.
Then we combine the matrix of horizontal and matrix vertical discontinuities of the original image.So we get a new image that has been transformed with wavelets.The general scheme of the wavelet transformation is shown in Figure 1.For more details on the wavelet ideology for transforming images of cytological preparations, see [19] [20] [22].
To ensure the reliability of the detection of discontinuities, it is necessary to carry out the procedure of enhancing the contrast of the image.This is one of the conditions for improving the quality of image processing of cytological preparations [13] [14].

Changing the Contrast as an Element of Improving Image Analysis Quality
Contrast is one of the characteristics of an image.Contrast value related to the brightness of pixels that are the sources of information about the objects in the image.The balance of contrast affects the quality of perception and analysis of the image.Therefore, the contrast change procedure is designed to improve the initial image quality, improve the efficiency of the source image analysis.By increasing the contrast of the image (pixels-individual image points) highlights become lighter and dark image regions become darker.When reducing image contrast, on the contrary, there is an expansion of the average gray-level range.Dark pixels become lighter, and light pixels become darker and partially transform into the midtones.Changing the image contrast makes some details of the image clearer.
The following methods can be used to change the contrast of the image Conversion of the image contrast using the histogram change in the specified range with gamma correction is shown in Figure 2  [25], where γ -parameter for gamma correction; 1, 2 gv gv -changing values of the input image histogram; 1, 2 gk gk -changing values of the output image histograms.
If γ is less than 1, the output image is brighter than the input image.If γ is greater than 1, the output image is darker than the input image.
We can also argue that the main task of changing the contrast for the application of wavelet analysis is to increase the values in discontinuity points.It is this fact that makes it possible to isolate the finer details in the image.Then we can say that the entropy value for the output image will be different from the entropy value for the input image.As a rule, the absolute value of the entropy will increase, since we increase the values in the discontinuity points.First of all, this increase relates to the sequence of images for which we apply a contrasting procedure (the value of entropy will increase depending on the increase in contrast).This growth is not permanent.When we increase the contrast, we change the brightness values of the image pixels.At the same time, we can lose some brightness values of the image pixels.Some values of the brightness of the image pixels can be merged with other values of the brightness of the image pixels.Then the absolute value of entropy (for the new output image) will decrease.Therefore, we may lose some details of the original image.Thus, such a transition can be selected as the threshold to determine the value of gamma correction ( γ ).
The entropy of the image is calculated using the formula (taking into account the color channels of the image) [25]: where ( ) i p -is the value of the histogram counts for the level i brightness for the image that is being analyzed ( 1, i N = ).

Color System HSV for Image Analysis
Color system HSV is one of the priority systems for processing medical images.This is confirmed by the existence of a number of articles [26] [27] [28] [29] [30].At the same time the HSV color system is preferable in implementing the contrast change procedure.This is due to the fact that when working in the HSV system, the number of operations is reduced, for example, in comparison with the RGB color system.At the same time the HSV color system in comparison with the RGB color system, gives a better result when contrast changes [31].
Some studies also note that the RGB color system is the least preferred [26].
However, the RGB color system is the basis for conversion to other color systems [25] [32].The image in RGB color system consists of three color channels-R (red), G (green) and B (blue) [25].The image in HSV color system consists of three channels-H (hue), S (saturation), V (volume or brightness) [25].System HSV is a non-linear transformation of the RGB system.The relationship between RGB and HSV is implemented as follows [32] where R, G, B-the corresponding channel values in the system RGB, H, S, V-the corresponding channel values in the system HSV.
Then, to change the contrast, it is necessary to carry out the procedure for channel V in the model HSV.

Data for Analysis and the Main Objective of the Study
For the study, we look at various images (Figure 3).These images are analyzed in our other articles and give an opportunity to make a comparative analysis [13] [19] In each image (Figure 3) one can see megaloblastic anemia cells-this is one of the varieties of pernicious anemia.A characteristic feature of megaloblastic anemia is the emergence of very large erythrocytes.We also see the complex structure of megaloblastic anemia cells.
At the same time, megaloblastic anemia cells structure characterized by a large number of segments in the nucleus (hypersegmented neutrophil).In this normal  Thus, the main task of the study is to justify the approach for obtaining the gamma correction parameter ( γ ) in order to change the image contrast for ap- plying wavelet analysis to the original image.

Results and Discussion
First of all, we will consider the dynamics of the change in entropy values for each image (Figure 3).To do this, we will calculate the entropy index for differ- ent values of the gamma correction index ( γ ).At the same time we are produc- ing image contrast correction procedure in the HSV color model for Channel V.
The general scheme of such a sequence of actions is shown in Figure 5.
In Figures 6-9 shows the changes in the entropy index (ENT) for different values of the gamma correction index (Figure 6 for Figure 3(a), Figure 7 for     the value of the gamma correction index varies from 0.1 to 5.8 in 0.1 increments.This range allows you to evaluate the effect of gamma correction in the index value of entropy.
We see that the value of the entropy indicator (in the figures this is the lineentropy index) increases with increasing gamma correction ( γ ).But also we see  For the image in Figure 3(a), a decrease in the entropy index, for example, is typical for such values γ as 1.3; 1.7; 1.9 and so on (see Figure 6).For the image in Figure 3(b), a decrease in the entropy index, for example, is typical for such values γ as 2; 3; 3.6 and so on (see Figure 7).For the image in Figure 3(c), a decrease in the entropy index, for example, is typical for such values γ as 2.5; 3.1 and so on (see Figure 8).For the image in Figure 3(d), a decrease in the entropy index, for example, is typical for such values γ as 1.8; 2.3; 3.3 and so on (see Figure 9).Thus, it is important for us to carry out wavelet analysis for such critical values of gamma correction.Critical values of gamma correction are values γ that precede a decrease in the value of the entropy index.In doing so, we will analyze the structure of megaloblastic anemia Cells, which was isolated using wavelet analysis.We will carry out this analysis in a comparative aspect for different values of the gamma correction index.To perform wavelet analysis, we use the wavelet db1.According to our research, db1 wavelet gives good results in image processing, which are made with a microscope [19] [20].In Figure 10 shows the results of applying wavelet analysis with different values of gamma correction in contrast variation for the image in Figure 3(a).In Figure 11 shows the results of applying wavelet analysis with different values of gamma correction in contrast variation for the image in Figure 3(b).In Figure 12 shows the results of applying wavelet analysis with different values of gamma correction in contrast variation for the image in Figure 3(c).At the same time it should be noted-the contrast change is an important procedure for image analysis.By changing the contrast, you can more precisely select objects in the image.But this is a very difficult task for medical imaging.This is due to the uneven distribution of color and brightness on medical images [14].It is therefore important to choose the correct image contrast modification procedure.
Typically, to change the contrast of the image analyzes the histogram of local areas of an input image [33] [34] [35].This gives a good result.Such an analysis is carried out for the gray-level images.Then the problem arises of choosing a color model for analyzing the image and converting the color image into a gray-level image.
We are considering a comprehensive approach for analyzing color images-changing the image contrast, applying wavelet analysis.This approach provides ease of implementation and quality results.Selecting the color system HSV (to change the contrast of the image) allows you to reduce computational costs.

Conclusions
Analyzing of medical images allows for more in-depth studies of the human body, to study the dynamics of its operation and to diagnose possible diseases in the early stages of their development.Therefore, the search for new methods of analysis of medical images is an important task.
We consider the image of megaloblastic anemia cells.For the analysis of the image, we use wavelet ideology.This ideology requires the use of image contrast modification procedure.We consider the HSV color model and the image contrast modification procedure, which is based on the histogram change in the specified range with gamma correction.
As a threshold for selecting a gamma correction parameter for changing contrast of the image, we use a value of an indicator of entropy.We showed the possibility of using the value of the entropy index to select the threshold for changing the contrast of the image.We showed the advisability of using the value of the entropy index for the subsequent improvement of image analysis based on the wavelet ideology.
The general sequence of megaloblastic anemia cells image processing can be represented as follows: the input image is converted into the HSV format; channel V is selected; the contrast of the input image is changed for different values of gamma correction index; critical values of gamma correction index are selected;

Figure 1 .
Figure 1.Sequence of application of the wavelet ideology to transform the original image.Matrix of vertical discontinuities [14] [25]:histogram equalization of brightness values (luminance), non-linear stretching of dynamic range of brightness values, masks filtering, fuzzy masking, histogram change in the specified range with gamma correction.We will use the method-histogram change in the specified range with gamma correction.This choice is justified: possibility of adjusting the level of contrast changes (based on the histogram change in the specified range), possibility of setting a linear or non-linear histogram change.

Figure 2 .
Figure 2. Characteristics of transmission of image brightness levels for various gamma correction parameters.
[20] [31].All images are different from each other.All images are in the RGB color model.It can be seen from the histograms, which are shown in Fig-ure 4(respectively, for each image in Figure3).

Figure 3 (Figure 5 .
Figure 3(b), Figure 8 for Figure 3(c), Figure 9 for Figure 3(d)).To build such dependencies, we proceeded from the fact that: changing values of the input image histogram ( 1, 2 gv gv )-corresponds to the real range of changes, changing values of the output image histograms ( 1, 2 gk gk )-corresponds to the full range of possible brightness,

Figure 6 .
Figure 6.Change in the value of the entropy index for the image in Figure 3(a).
Open Journal of Blood Diseases

Figure 7 .
Figure 7. Change in the value of the entropy index for the image in Figure 3(b).

Figure 8 .
Figure 8. Change in the value of the entropy index for the image in Figure 3(c).

(
in the figures this is the line-change entropy index) that the value of the entropy index increases unevenly.Moreover, for individual values γ , the value of the entropy index decreases.Lines (change entropy index) in Figures 6-9 are shown in such a way as to see a decrease in the values of the entropy index (these values are less than 0).Open Journal of Blood Diseases

Figure 9 .
Figure 9. Change in the value of the entropy index for the image in Figure 3(d).