Introduction

The chest radiograph is usually employed to diagnose the diseases in the thorax. It is often used especially to identify the lung disease. Sometimes it is demanded to diagnose the infection state of the lung rapidly in an emergency, such as the severe acute respiratory syndrome (SARS).

Image enhancement for chest radiograph is performed to improve the visualization of tissues and structures by optimizing some parameters, e.g., contrast, brightness, spatial resolution, and noise level, to find out various diseases in the chest. But the digitized chest radiographs suffer from poor quality in most of situations, so that the details of lung and mediastinum cannot be distinguished easily.

Because the x-ray attenuation across the lung is lower than other contents, the image of the lung becomes darker than the others on the chest radiograph. The traditional techniques of image enhancement apply the linear or S-form transformation to change the brightness and contrast, and the histogram equalization is often used for improving visual effect, which are popular in many medical image work stations so far. Because they are operated on the global area, they cannot meet the improved requirements simultaneously for the different parts of chest radiograph. In recent years, several local image enhancement algorithms have been presented.16 Some enhancement methods based on histogram equalization711 and modern signal processing techniques12,13 to improve the effect of the chest radiograph are given also.

In the paper, according to the gray-level properties of the different areas of the chest radiographic image, the global image is divided into three sections, and the adjusting effects of the piecewise linear transformation are analyzed. An approach of automatic enhancement is given by combing the histogram equalization with the gray-level transformation. It is shown that the details of the whole chest image are sharper.

Materials and Methods

Approval of the institutional review board of the Children Hospital of Shanxi Province was obtained prior to start of the study.

Analysis of Chest Radiograph and Automatic Enhancement Algorithm

The appearance of chest radiograph indicates the lung area to be darker because of lower mass density and the close-grained structures brighter, such as spine, rib, and abdomen. According to the intensity of the different regions of chest radiograph, the image can be divided into three parts: subregion I standing for the lung part, subregion II being the spine, heart, and abdomen, and subregion III standing for the shoulders, as shown in Figure 1. The subregion I looks like darker, the subregion III brighter, and the subregion II brightest, especially in the abdomen area. The goal of the gray-level transformation is to achieve a flat intensity instead of strong black and white difference on the whole image for improving the visualization of the details.

Fig 1
figure 1

Divided parts of chest radiograph.

We can adjust the brightness and contrast of the subregions with a piecewise linear transformation, i.e., g(x,y) = L( f (x,y)). The two or three piecewise linear transformation is often used in actual situation.

Aiming at the intensity properties of the chest radiograph, we adopt three piecewise linear transformation, as shown in Figure 2. The equation is expressed by

$$g{\left( {x,y} \right)} = \left\{ {\begin{array}{*{20}c} {L_{{C_{1} C_{2} }} {\left( {f{\left( {x,y} \right)}} \right)}}{0 \leqslant f{\left( {x,y} \right)} < f_{{C_{2} }} } \\ {L_{{C_{2} C_{3} }} {\left( {f{\left( {x,y} \right)}} \right)}}{f_{{C_{2} }} \leqslant f{\left( {x,y} \right)} < f_{{C_{3} }} } \\ {L_{{C_{3} C_{4} }} {\left( {f{\left( {x,y} \right)}} \right)}}{f_{{C_{3} }} \leqslant f{\left( {x,y} \right)} \leqslant f_{{C_{4} }} } \\ \end{array} } \right.$$
(1)

where

$$\begin{array}{*{20}c} {L_{{C_{1} C_{2} }} {\left( {f{\left( {x,y} \right)}} \right)} = \frac{{g_{{C_{2} }} - f_{{C_{2} }} }}{{f_{{C_{2} }} }}f{\left( {x,y} \right)} + g_{{C_{1} }} } \\ {L_{{C_{2} C_{3} }} {\left( {f{\left( {x,y} \right)}} \right)} = \frac{{g_{{C_{3} }} - g_{{C_{2} }} }}{{f_{{C_{3} }} - f_{{C_{2} }} }}f{\left( {x,y} \right)} + g_{{C_{2} }} - \frac{{g_{{C_{3} }} - g_{{C_{2} }} }}{{f_{{C_{3} }} - f_{{C_{2} }} }}f_{{C_{2} }} L_{{C_{3} C_{4} }} {\left( {f{\left( {x,y} \right)}} \right)} = \frac{{g_{{C_{4} }} - g_{{C_{3} }} }}{{f_{{C_{4} }} - f_{{C_{3} }} }}f{\left( {x,y} \right)} + g_{{C_{3} }} - \frac{{g_{{C_{4} }} - g_{{C_{3} }} }}{{f_{{C_{4} }} - f_{{C_{3} }} }}f_{{C_{3} }} .} \\ \end{array} $$
Fig 2
figure 2

Gray-level transform of chest radiograph.

In Figure 2, the input corresponding with C 1 C 2, C 2 C 3, and C 3 C 4 spans the gray-level range of the lung (subregion I), shoulder and top of spine (subregions II and III), and heart, abdomen, and middle and bottom of spine (subregion II), respectively, where \(f_{{C_{1} }} = 0,\;f_{{C_{2} }} = 115,\;f_{{C_{3} }} = 153,\;{\text{and}}\,f_{{C_{4} }} = 255\) stand for the inputs of the point C 1, C 2, C 3, and C 4 for an 8-bit digital image.

The enhancement effect for the chest radiograph is determined by adjustment of the points C 1, C 2, C 3, and C 4, which are described in the following.

  • C 1 adjusts the brightness and contrast of subregion I. The larger the slope of C 1 C 2 is, the stronger the contrast is. The strong contrast is not expected usually because of an extra darkness. The contrast can be reduced with increase of brightness by increasing C 1.

  • C 2 mainly adjusts the contrast of subregion I, and it almost does not affect other subregions. So we can alone change the output of C 2 to obtain the desired visualization of the lung region.

  • C 3 adjusts the brightness of subregions II and III, but hardly affects subregion I. The output of C 3 should not be larger; otherwise, the tops of subregions II and III are much more brighter, which causes the structures to be undistinguishable.

  • C 4 adjusts the brightness and contrast of subregion II. It creates a negative effect when the output of C 4 is less than that of C 3.

Approach of Automatic Enhancement for Chest Radiograph

Although we found out the regulation of the chest radiographic image, based on its intensity properties, the direct gray-level transformation with Equation (1) is not enough because of the different patients, types of x-ray radiographic equipment, and imaging conditions, and the chest radiographic results are distinct from each other. Therefore, the ideal effect cannot be achieved automatically only with the linear gray-level transformation. It is necessary to normalize the gray-level distribution of the image. The histogram equalization processing gives an approach to force the image histogram to become uniform. To make the linear transformation of Equation (1) suitable to various chest radiographic images, we may first obtain the image of uniform histogram by means of the histogram equalization, which is a basis for performing the linear transformation in the next step.

The histogram equalization is expressed by

$$p{\left( {s_{k} } \right)} = {n_{k} } \mathord{\left/ {\vphantom {{n_{k} } n}} \right. \kern-\nulldelimiterspace} n\quad {\left( {k = 0,1,2, \ldots ,L - 1} \right)}$$
(2)

where s k is the kth gray-level value of the image f (x,y), n k is the pixel number possessing the kth gray-level value, n is the total pixel number of the image, and L is the total gray-level number.

The equalized image can be obtained using the following expression

$$H_{k} = {\sum\limits_{i = 0}^k {p{\left( {s_{i} } \right)}} }$$
(3)

In a word, the approach of the automatic enhancement for chest radiograph is shown in Figure 3, in which the piecewise linear transformation indicates Equation (1).

Fig 3
figure 3

Approach of automatic enhancement for chest radiograph.

Results and Discussions

The results of the enhanced chest radiographic images by means of the presented approach are shown in Figures 4 and 5. All of the applied parameters in Equation (1) are listed in Table 1.

Fig 4
figure 4

(a) Original normal chest radiographic image. (b) Processed image.

Fig 5
figure 5

(a) Original SARS radiographic image. (b) Processed image.

Table 1 Parameters applied in equation (1) for processing chest radiographic images

The values of \(g_{{C_{1} }} ,\;g_{{C_{2} }} ,\;g_{{C_{3} }} ,\;{\text{and}}\,g_{{C_{4} }} \) are collected through the judgment of the radiologists by the visualization effect after processing typical chest radiographs, so they may be applicable for most of the chest radiographs.

It is shown that three subregions are improved completely in Figures 4(b) and 5(b) by comparing with their original images, where there is an appearance of negative effect in subregion II because the output of C 4 is less than that of C 3. It is easier to identify the pathological features of the small gobbet of the lung for the SARS patient in Figure 5(b).

The normal and the SARS radiographic images are divided approximately in accordance with Figure 1, as shown in Figures 6 and 7, respectively. To measure the enhanced effect, we may calculate the standard deviation of every subregion image by use of the division of Figures 6 and 7. The larger the standard deviation is, the more distinguishable the image structures are. Three subregion images are evaluated with their standard deviations, as shown in Table 2. The average enhanced ratio of three subregions of the normal and SARS images is increased by 10.70% and 25.55%, respectively. Thus, the processed images are obviously superior to the original ones.

Fig 6
figure 6

Subregion division of normal chest radiographic image.

Fig 7
figure 7

Subregion division of SARS chest radiographic image.

Table 2 Three subregion standard deviations and enhanced ratios of normal and SARS chest radiographic image

Conclusions

Aiming at the automatic enhancement for the chest radiograph, the piecewise linear transformation model is established by dividing the image into three subregions, based on its gray-level properties. The histogram equalization is essential in attaining a normalization of the image before performing the piecewise linear transformation. The methodology of the automatic enhancement is proved to be effective through the evaluation of the improved images in the application of normal and SARS radiographic images. It provides an approach for the automatic enhancement and recognition of chest radiograph in the clinic.