INTRODUCTION

Radiological diagnosis is based on the analysis of the film optical density differences that should be generated only by the variation of the absorption of the analyzed tissue. Some variations may be caused by the scattered radiation and intensifying screen blur. Several research groups have worked on the removal of the scattered radiation effects from x-ray images to enhance mammograms.13 Blurs from intensifying screens, being a diffusion process, have been extensively modeled and measured to permit image enhancement.4 One of the most relevant problems causing field inhomogeneity is the Heel effect and overall nonuniformities in optical densities are correlated with radiation intensity variations.5

The tilted x-ray target causes the Heel effect. The x-ray radiation generated in the tilted anode travel along different path lengths undergoing different attenuation causing certain image receptor regions to receive more radiation then others leaving them darker. These differences affect the image contrast. Although the intensity inhomogeneity induced by the Heel effect is a smoothly varying function of the position, it is easily corrected by the human visual perception system but complicates the use of automatic processing techniques because the brightness of an object within the image is position-dependent.6

Terry et al.5 have experimentally investigated the nonuniformity of the x-ray beam itself and they found a decrease of 16% to 40% in the radiation intensity of mammographic equipment along the anode–cathode axis and of 1% to 9% in the direction orthogonal to that axis. For conventional x-ray equipment, Fung and Gilboy have shown that the radiation along the anode–cathode axis suffers a variation of 55% between one and the other end of the radiation field.7

Recently, several computational algorithms have been developed and explored for computer-aided detection (CAD) systems to assist in locating and classifying breast abnormalities of digitized mammography images, assuming that they might provide a useful second opinion to radiologist.8 However, these algorithms could be prone to errors because of the spatial intensity variations of the applied x-ray field. The application of the corrections against the nonuniform characteristics of acquisition systems before using CAD was described in other papers.9,10 In computational vision, the variation in image background density caused by nonuniform illumination is a well-known problem. The majority of the traditional techniques for the correction of nonuniform illumination have been developed for industrial applications, presenting good results. So, their applications in the mammographic CAD systems do not supply satisfactory results, mainly because they do not maintain the correct image densities of the anatomical structures.

In the case of mammograms, Cowen et al.11 coupled a Perspex filter on the x-ray tube window to compensate the Heel effect. They obtained reasonably uniform optical density values for all the field positions. According to the authors, it is necessary to develop a specific filter for each tube.

Highnam et al.,12 Pawluczyk and Yaffe,13 and Behiels et al.6 have proposed computational methods to correct the Heel effect in radiological images so that the gray scale variations correspond only to the tissue differences of the analyzed structure. For this method, Highnam et al.12 employed a film exposed without object named “black” film, representing the optical densities produced only by the x-ray beam. According to the authors, images with normalized background regions were obtained applying this process on digitized mammograms in the Churchill hospital, in Oxford.

Pawluczyk and Yaffe have described the correction of densities variations produced by the Heel effect in digitized mammograms, combining empirical data with analytical models.13 The authors have calculated the incoming radiation intensity at each point of the breast based on the path obliquity, spectral beam hardening, Heel effect, and distance using the inverse-square law. Simulations have been conducted to determine the magnitude of these effects, allowing the gray scales to correspond only to the breast tissue variations. According to the authors, although results obtained with the model have been similar to the experimental results, it does not supply enough precision to exactly compensate all the field variations. A combination between experimental (empirical data) and theoretical (modeling) approaches has allowed the correction of the radiation nonuniformity on multiple radiological systems.

Behiels et al.6 proposed a mathematical model that allows the Heel effect to be simulated. With this model, the authors have determined a new image background, calculating a new distribution and correcting the parameters until they converged. The method has provided good results with phantom images and with 137 hand digital radiographs that had a background region sufficiently large to allow the refinement of the parameters of the model. Those methods have provided good results, however, the center position of the radiation field has to be determined experimentally for each system to allow the application of these methods.

In fact, the radiation field generated by an inclined anode is nonisotropic and noninvariant. Therefore, methods simulating the radiological image formation processes need a previous space agreement between the simulated field and the image to be corrected. Pawluczyk and Yaffe obtained this spatial agreement by specific experiments;13 and Behiels et al. used successive interactions.6

The method that we present allows an automatic correction of the variations caused by the Heel effect without the use of additional reference images and without previous experiments to determine the center of the x-ray field. The radiation center of the field and the anode–cathode axis, to be used in our proposed method, are determined using only on the image to be corrected. The determination of the orientation and localization of the x-ray source is obtained from the digitized radiological image only and is therefore independent of the x-ray equipment and the register system. The corrections of radiological image pixels are made in function of the excess or the lack of radiation that these pixels have been submitted to. Experimental images of known objects were used to validate the proposed method proving that it can be applied on clinical and digital images.

MATERIALS AND METHODS

Image Acquisition

A CGR 500T Senographe radiological unit was used to produce all the test images. The system was equipped with a x-ray tube with a molybdenum anode (Mo), filter Mo, and a beryllium window producing a 0.3-mm nominal sized focus. Although the equipment contains an automatic exposure control system, the parameters were manually adjusted. Five aluminum disks, each with diameter of 10 mm and a thickness of 1.5 mm, were used as phantoms to produce 40 images. Kodak Min-R 2000 and Fuji AD-M films were used to provide high contrast and quality mammograms.14 The 180 × 240 mm films were reduced to 140 × 180 mm maintaining only the regions of interest and were subsequently digitized with a spatial resolution of 169 μ into 8 bits intensity levels with a VIDAR–Diagnostic Pro equipment providing adequate experimental data.

The exposure techniques and simulations conducted in our experiments are presented in Table 1. To avoid additional noise, a cassette without screen intensifier was used in all our experiments, and therefore, a larger kVp setting was required. This was possible because the kVp has little influence on the Heel effect.

Table 1 Exposure Techniques

A Mammography Focal Spot Test Stand, manufactured by Nuclear Associates, was used to locate the radiation center of the field trough the image obtained by Focal Spot Test Stand Alignment Device (the one bead is centered between the four beads). With this tool, the vertical and horizontal positions of the center of the radiation field were measured with a standard deviation of 0.2 and 0.5 mm, respectively, and used to validate the proposed method.

Radiation Beam Distribution Simulation

To allow the correction of the variations of the optical densities, the radiological image formation process must initially be simulated considering the Heel effect. A user-friendly Delphi programming environment was used to computationally simulate the intensity distribution along the radiation field based on the travel path of the photons inside the target.15 The correction of the Heel effect was implemented using the continuous slowing-down approximation method (CSDA) as described by Fritz and Livingston.16

In this method, the radiation spectrum I 0(E) produced by the target for any point of the radiation field was calculated as follows:

$$ I_{0} {\left( E \right)} = CZ{\left( {E_{0} - E} \right)}{\left( {\frac{{v_{0} }} {{c^{2} }}} \right)} $$
(1)

where, E is the photon energy, E 0 the electrons emission energy, Z the anode atomic number, v 0 the electron initial velocity, C a constant, and c the velocity of light. The value of constant C was chosen in accordance with the anode material. For molybdenum anode, the value is 0.579 × 10.11

Figure 1 shows the x-ray photon emission process. The cathode electrons are attracted by the anode colliding and penetrating in it at high velocities causing the production of internal radiation. During this process, the photons suffer major or minor absorption, depending on their travel path inside the anode. This process is represented in a coordinate system (x, y, and z) (see Fig. 1) with x along the anode–cathode axis, y along the particular direction, and z in the orthogonal direction to that axis. The distance (d) between points A and B of the anode–cathode axis defines the electron penetration depth.17 Considering (S) the path length of the photons within the target, when emitted toward a point P 2 of the image plane, ϕ the target’s inclination angle, θ the angle formed between the emitted ray in the direction of point P 2 and the center of the beam, in other words, between points BC and BD, the path length S to any point of the image plane is given by:18

$$S{\left( \theta \right)} = \frac{{\begin{array}{*{20}c} {d} & {{\cos }} \\ \end{array} \phi }}{{\begin{array}{*{20}c} {{\cos \beta }} & {{\sin {\left( {\phi + \theta } \right)}}} \\ \end{array} }}$$
(2)
Fig 1
figure 1

Electron penetration and x-ray photons emission process inside of the target.

Equation 3 provides the radiation intensity after passing through the anode material:

$$ I{\left( E \right)} = I_{0} {\left( E \right)}\,e^{{{ - \mu } \mathord{\left/ {\vphantom {{ - \mu } {\rho S{\left( \theta \right)}}}} \right. \kern-\nulldelimiterspace} {\rho S{\left( \theta \right)}}}} $$
(3)

where, I(E) is the transmitted radiation intensity, I 0(E) is the incident radiation intensity, μ/ρ is the mass attenuation coefficient that depends on the photons incident energy and the target material. Spectrum correction caused by the x-ray tube window and the additional filter must also be calculated. The values used for the mass attenuation coefficients of the materials considered in the simulation in function of photon energies between 1 and 50 keV are given by Boone and Chavez.19 To get the radiation intensity for all the pixels of the image plane, the spectrum must be integrated in I(E).

In the resultant simulated field, the center of the radiation field, and the anode–cathode axis, as well as the control points every 2 cm along this axis, must be determined. The variation of the radiation intensities must be calculated from each point related to the center of the simulated field.

Determination of the Spatial Correspondence

To determine the spatial correspondence between the simulated field and the radiological image, it is necessary to locate also the projection of the x-ray tube anode–cathode axis on this image.

One of the Heel effect properties is used to realize the spatial correspondence. Namely, the radiation field intensities are symmetrically distributed in the perpendicular direction of the anode–cathode axis as shown in Figure 2a. Using this feature, the position of the anode–cathode axis can be obtained from the distribution simulation. To determine the similarity of pixels between the S 1 and S 2 region, an area without object information must be found in the radiological image (see Fig. 2a). The Sobel edge detector20 and the Otsu threshold algorithm were applied to locate this area and two bands A and B must be analyzed (see Fig. 2b). A second degree polynomial regression, based on the least square methods along with the application of the median filter derived by simply choosing the “median” pixel in the 3 × 3 pixel neighborhood, are used to reduce the quantum noise of these bands.21 The similarity of the pixels densities of each band within the S 1 and S 2 area is examined until finding those that present a high percentage of similarity of its gray scales densities.

Fig 2
figure 2

a Distribution of the densities in a direction perpendicular to the anode–cathode axis. b Divisions of the image for the determination of the anode–cathode axis.

Half of the M 1 distance, between the pixels pair with maximum similarity of band A, determines the location of one point of the projection of the anode–cathode axis.

The same method is applied in band B, finding M 2. The projection of the anode–cathode axis in the image passes through M 1 and M 2.

A B-spline interpolation function is applied on the density values of the anode–cathode axis projection:

$$ P{\left( t \right)} = {\sum\limits_{i = 0}^n {N_{{i,k}} {\left( t \right)}} }p_{i} $$
(4)

where p i (i: = 0,..., m) are the control points, k is the degree, and n is the number of points of the final polygon. The N i,k functions are given by the following recursive formula, known as the Cox-de Boor algorithm:22

$$\begin{array}{*{20}c} {{N_{{0,k}} {\left( t \right)} = \left\{ {\begin{array}{*{20}l} {1 \hfill} & {{{\text{if }}t_{i} \leqslant t < t_{{i + 1}} ,} \hfill} \\ {0 \hfill} & {{{\text{otherwise}}} \hfill} \\ \end{array} } \right.}} \\ {{N_{{i,k}} {\left( t \right)} = \frac{{{\left( {t - t_{i} } \right)}}}{{t_{{i + k}} - t_{i} }}N_{{i,k - 1}} {\left( t \right)} + \frac{{{\left( {t_{{i + k + 1}} - t} \right)}}}{{t_{{i + k + 1}} - t_{{i + 1}} }}N_{{i + 1,k - 1}} {\left( t \right)}}} \\ \end{array} $$
(5)

where t 0 ≤ t 1 ≤...≤ t n+k are the parameterization knots.

In the radiological image, the control points must be determined so that the percentage variation of their gray scales is equivalent to the radiation intensity variations found in the simulated field. Because in our case the used densities are collected in the linear region of the HD curve of the film, we can consider that the densities’ variations will correspond to the radiation intensity variations.

Figure 3 shows selected points in the anode–cathode axis of the radiological image and those of the simulated field. A 3 × 3-pixel neighborhood on each control point is used to measure the similarity between the values of the two analyzed sets (Eq. 6):23

$$ r = \frac{{{\sum\limits_{i = 1}^n {x_{i} y_{i} - \frac{1} {n}{\left( {{\sum\limits_{i = 1}^n {x_{i} } }} \right)}{\left( {{\sum\limits_{i = 1}^n {y_{i} } }} \right)}} }}} {{{\sqrt {{\sum\limits_{i = 1}^n {x^{2}_{i} - \frac{1} {n}{\left( {{\sum\limits_{i = 1}^n {x_{i} } }} \right)}^{2} {\left( {{\sum\limits_{i = 1}^n {^{2}_{i} - \frac{1} {n}{\left( {{\sum\limits_{i = 1}^n {y_{i} } }} \right)}^{2} } }} \right)}} }} }}} $$
(6)

where x i is the gray scales densities of the i pixel in the radiological image, y i is the gray scales densities of the i pixel in the simulated field, and n is the analyzed pixels number in the 3 × 3-pixel neighborhood.

Fig 3
figure 3

Selection of points of control in the anode–cathode axis of the simulation and radiological image.

To analyze the correspondence between the radiological image pixels and the points of the simulated field, a polynomial mapping function based on least squares techniques is applied. The control points of the two images are overlapped to allow the localization of the center of the field of the radiological image.

Heel Effect Correction

To correct the density variations caused by the Heel effect, the percentages of radiation received by each pixel from the simulated image in relation to the center of the field must be calculated. These percentages are stored in a matrix of pixels named “background image”.

The variation in percentage of the density of each pixel of the radiological image regarding the density of the center of the field is calculated and is store in a “radiological image” matrix.

The final “corrected image” matrix is obtained subtracting the “background image” matrix from the “radiological image” matrix.

This new image registers only the variation percentages caused by the radiological structures. These values are converted into gray scale densities, considering as reference the density of the center of the field of the radiological image.

RESULTS

Figure 4 shows the digitized image of the five equal phantoms obtained with the exposure condition E 1. An arrow point marks the experimentally obtained center. Figure 4b shows the influence of the Heel effect on this radiological image in 3-D where we can observe that the contrast of each object is different and depends on its position in the radiation field.

Fig 4
figure 4

a Digitalized radiographic image obtained with 34 kVp, 160 mA, and 1 s. b Three-dimensional representation of the gray scale distribution of a.

Figure 5 presents the gray scale average values of bands A and B of the radiological image reduced to lines obtained with technique E 1.

Fig 5
figure 5

Graphic representation of selected line average in bands A and B for the determination of the anode–cathode axis in the image of Figure 4a.

Table 2 presents the correlation between the simulated field control points and the radiological image obtained with the exposure condition E 1 together with the correlation percentage.

Table 2 Correlation Between the Simulated Field Control Points and the Radiological Image, Together with the Correlation Percentage

Figure 6 shows the obtained localization of the anode–cathode axis and the center of the field on top of the Figure 4a. The white line indicates the projection of the anode–cathode axis. Its intersection with the perpendicular line indicates the calculated center of the field, whereas the white arrow indicates the experimentally defined position.

Fig 6
figure 6

Localization of the field center in the digitized radiological image obtained with 34 kVp, 160 mA, and 1 s.

Table 3 presents the largest error for localization of the center measured with the commercial equipment; those calculated with our method and the difference in each of the exposure techniques. The signal placed before the deviation value indicates if the localization of the calculated center is before (−) or after (+) the measured position with the commercial equipment, X indicates the direction perpendicular to the anode–cathode axis and Y indicates the direction parallel to the axis.

Table 3 Localization of the Center Measured with the Commercial Equipment and Calculated with our Method and their Deviation (Pixel Size 0.169 mm)

After simulating the virtual image and calculating the density variations in relation to the center, the densities of the radiological image were corrected in function of this simulation. Figure 7a shows the results obtained after applying the algorithm for correction of the Heel effect on the image of Figure 4a. A 3-D presentation of the corrected gray scale intensities were shown in Figure 7b. The three-dimensional representation of the density distribution of the image shows that the algorithm has also correctly reconstructed the densities of the phantoms.

Fig 7
figure 7

a Image obtained after the algorithm for correction of the heel effect. b Graph with 3-D representation of the gray scale distribution of the corrected image.

The density values used to determine the center of the field in the anode–cathode direction are presented in Figure 8a where Figure 4a shows the values before the correction and Figure 7a after the applied method. In Figure 8b, the same representation is presented perpendicular to the anode–cathode direction.

Fig 8
figure 8

Gray scale obtained before (Fig. 4a) and after (Fig. 7a) the algorithm applied in the image of Figure 4a. a Direction parallel to the anode–cathode axis. b Direction perpendicular to the anode–cathode axis.

To evaluate the correction, we show in Table 4 the standard deviation \( \sigma \) of the estimated background of all images produced by the four exposition techniques before and after the application of our correction method as well as the removed noise.6

Table 4 Standard Deviation Obtained, σ, After Application of the Algorithm Considered of the Difference of the Average Value of the Intensity of Background for the Images

DISCUSSION

To evaluate the proposed method, various data acquisition conditions were changed. The presented results show that the developed algorithm can efficiently determine the anode–cathode axis in all cases. The localization of the anode–cathode axis was evaluated with a correlation function. This correlation function permits the generation of a metric to compare the similarity between the simulated and the mammographic images. An average similarity of about 90% was obtained. This value is considered satisfactory by Dekker et al.24 in his evaluation of radiotherapy images.

The largest error with the proposed method used to define the position of the radiation center of the field parallel to the anode–cathode axis, even when it was compared to the measured position obtained with the commercial equipment, was 3.38 mm of the 180-mm analyzed region of interest. In the perpendicular direction, the largest observed error was 3.89 mm of the 140-mm region of interest. However, the method differs on average by 2.49 mm (1.78% of the image) in the direction perpendicular to the anode–cathode axis and 2.02 mm (1.12% of the image) parallel to the axis.

The small differences between the obtained results of the two methods can be attributed to: quantum noise, digitalization, and processing inaccuracies. The influence of these errors on the performance of the method was also analyzed. Three-dimensional representations of the pixel density distributions of the corrected images indicates that the method is capable of obtaining uniform background regions, maintaining the contrast of the objects, obtaining better results than those presented by majority of the traditional techniques for the correction of nonuniform illumination.

A quantitative study of the density variations of the background of the images shows that our method was also efficient in removing background noise; capable of reducing the noise to an average of 94.55%.

CONCLUSION

The variations of the contrast between radiographic objects and background image along the cathode–anode axis has been corrected, and the obtained densities of the objects are now only determined by there absorption characteristics. This was possible as our method was based on the simulation of the physical process involved in the radiological image generation including the characteristics of the used x-ray beam. As the method was developed considering the physical behavior of the x-ray, generation could also be used in digital radiography.

The correction was automatic and independent of the position of the image receiver; no previous or additional measurement to localize the center of the field were needed. This fact make our procedure much easier compared to the technique proposed by Highnam et al.12 and Pawluczyk and Yaffe,13 in which the position of the recording device in relation to the x-ray source must be marked in each image. Several experimental devices were described in the literature to determine the position of the x-ray source in relation to the image receiver. However, important factors restrict the use of such devices: time, materials, and a trained operator. The method presented in this paper provides a precise space agreement between the simulated image and the image to be corrected.

In all the tests conducted, the largest error obtained to determined the projection of the center of the radiation field regarding those obtained with commercial equipment was within 3.89 mm (2.78% of the image) of the image in the direction perpendicular to the anode–cathode axis and 3.38 (1.88% of the image) in the parallel direction. This small deviation occurs probably because of the quantum noise, digitalization, and processing influences.

The method developed to cancel the Heel effect not only allowed the densities of all pixels in the image background to be approximately constant (maximum average variation of 5.45%), but also reduced the image background noise to more than 93%.

Other image processing techniques capable of correcting nonuniform backgrounds in CAD systems can be found in literature, but in most cases, these methods do not use models describing the origin of the distortions. These techniques are not developed considering the physical behavior of the x-ray generation and consequently fail to remove the noise in mammograms without affecting small structures relevant for clinical diagnosis. In future researches, we will apply our automatic Heel effect correction method as a preprocessing tool on digitized mammograms and expect to obtain better CAD diagnoses.