(1) Field of the Invention
This invention relates to a radiographic apparatus and a radiation detection signal processing method for obtaining radiographic images from radiation detection signals detected by irradiating an object under examination. More particularly, the invention relates to a technique for correcting pixels.
(2) Description of the Related Art
An example of radiographic apparatus is an imaging apparatus that obtains fluoroscopic images by detecting X rays. This apparatus used an image intensifier as an X-ray detecting device in the past. In recent years, a flat panel X-ray detector (hereinafter called simply “FPD”) has come to be used instead.
The FPD has a sensitive film laminated on a substrate, detects radiation incident on the sensitive film, converts the detected radiation into electric charges, and stores the electric charges in capacitors arranged in a two-dimensional array. The electric charges are read by turning on switching elements, and are transmitted as radiation detection signals to an image processor. The image processor obtains an image having pixels based on the radiation detection signals. Therefore, variations occur in the quantity of electric charges stored in detecting elements each forming the capacitor and switching element. This results in variations in signal level of the pixels based on the radiation detection signals of the respective detecting elements. In order to reduce such variations, for example, a calibration is carried out to adjust gains of amplifiers provided for the respective detecting elements to uniform their outputs.
On the other hand, such variations are known to be caused by time-dependent noise resulting from noise dependent on gate bus lines connected to the gates of the switching elements for switching the gates on and off. That is, a voltage applied successively to the gate bus lines arranged in rows to switch the gates on and off serially generates noise peculiar to each of the gate bus lines arranged in rows. The following is known to reduce this time-dependent noise.
According to the technique disclosed in Japanese Unexamined Patent Publication No. 2003-87656, an FPD is divided into a correction pixel area sealed off from radiation, and a normal, effective area for converting radiation into electric charges. An offset image is obtained without emitting radiation, which is subtracted from an original image resulting from radiation, to obtain an offset corrected image. In the correction pixel area of the offset corrected image, time-dependent noise is derived from a mean or a weighted mean of pixel data of the same gate bus line or every two gate bus lines turned on simultaneously. The time-dependent noise of each row is subtracted from each column.
However, even when such a calibration is carried out, variations in signal level, i.e. signal level differences, of pixels cannot always be eliminated. As shown in
This invention has been made having regard to the state of the art noted above, and its object is to provide a radiographic apparatus and a radiation detection signal processing method capable of reducing signal level differences of pixels occurring in a horizontal direction or vertical direction of a pixel arrangement.
The above object is fulfilled, according to this invention, by a radiographic apparatus for obtaining radiographic images based on radiation detection signals, comprising a radiation emitting device for emitting radiation toward an object under examination; a radiation detecting device for detecting radiation transmitted through the object; a statistic calculating device for calculating statistics relating to a distribution of signal levels of pixels based on the radiation detection signals, the statistic calculating device being operable, when signal level differences occur across a boundary extending horizontally or vertically of a pixel arrangement, to calculate the statistics for two areas divided by the boundary; and a pixel correcting device for performing a correction of each pixel by applying an amount of correction relating to a difference between the statistics for the two areas to a signal level of each pixel to reduce the signal level differences.
With the radiographic apparatus according to this invention, statistics relating to a distribution of signal levels of the pixels based on radiation detection signals are calculated. When signal level differences occur across the boundary extending in the horizontal or vertical direction of the pixel arrangement, the statistic calculating device calculates statistics for the two areas divided by the boundary. The pixel correcting device applies an amount of correction relating to the difference between the statistics of the two areas to the signal level of each pixel so as to eliminate the signal level differences noted above. The signal level differences of the pixels occurring in the horizontal or vertical direction of the pixel arrangement are also a type of signal level differences stemming from a distribution of signal levels of the pixels. It is therefore possible to reduce the signal level differences of the pixels occurring in the horizontal or vertical direction of the pixel arrangement by applying the amount of correction obtained from the statistics relating to the distribution of signal levels of the pixels to the signal level of each pixel to correct each pixel.
The following inconvenience will arise when a correction is performed on the assumption that the two areas, upper and lower areas or right and left areas, divided by a boundary extending horizontally or vertically have substantially the same signal level. As shown in
In order to prevent such artifacts, the radiographic apparatus according to this invention, preferably, has the following construction.
The pixel correcting device is arranged to perform the correction only when a particular condition that an absolute value of the difference between the statistics is below a predetermined value is satisfied.
In this case, the pixel correcting device carries out the correction only when the particular condition is satisfied, the condition being that the absolute value of the difference between the statistics does not exceed a predetermined value. Thus, the processing is carried out without performing the correction at least for locations where the absolute value of the difference between the statistics should exceed the predetermined value, such as where, for example, the boundary noted above crosses the structure of the object under examination. As a result, it is possible to reduce the signal level differences of the pixels occurring in the horizontal or vertical direction of the pixel arrangement while avoiding artifacts being generated by the correction carried out for locations where the absolute value of the difference between the statistics should exceed the predetermined value.
In another aspect of the invention, a radiation detection signal processing method is provided for obtaining radiographic images based on radiation detection signals resulting from radiation emitted to and transmitted through an object under examination, the radiation detection signal processing method comprising the steps of calculating statistics relating to a distribution of signal levels of pixels based on the radiation detection signals, and when signal level differences occur across a boundary extending horizontally or vertically of a pixel arrangement, calculating the statistics for two areas divided by the boundary; and performing a correction of each pixel by applying an amount of correction relating to a difference between the statistics for the two areas to a signal level of each pixel to reduce the signal level differences.
With the radiation detection signal processing method according to this invention, since the signal level differences of the pixels occurring in the horizontal or vertical direction of the pixel arrangement are also a type of signal level differences stemming from a distribution of signal levels of the pixels, the amount of correction obtained from the statistics relating to the distribution of signal levels of the pixels is applied to the signal level of each pixel to correct each pixel. This reduces the signal level differences of the pixels occurring in the horizontal or vertical direction of the pixel arrangement.
In the radiation detection signal processing method according to this invention, the statistics are mean values of signal levels of at least part of the pixels, for example. The mean values are not limitative, but any statistics usually available may be used. Such a statistic is, for example, a median of the signal levels,
In the radiation detection signal processing method according to this invention, it is preferred that each pixel is corrected by applying the amount of correction to the signal level of each pixel, with a progressively smaller weighting with an increase in distance from the boundary to each pixel. The signal level differences appear notably near the boundary. The farther away the pixel is from the boundary, that is the longer the distance is from the boundary to the pixel, the less influence the signal level difference has on the signal level of that pixel. Thus, the smaller weight may be assigned for the longer distance from the boundary to the pixel, and each pixel may be corrected by applying such amount of correction to the signal level of the pixel. As a result, the signal level differences between the pixels can be reduced further.
In order to avoid artifacts, the radiation detection signal processing method according to this invention, preferably, performs the correction only when a particular condition that an absolute value of the difference between the statistics is below a predetermined value is satisfied.
In this case, since the correction is carried out only when the particular condition is satisfied, the condition being that the absolute value of the difference between the statistics does not exceed a predetermined value, the signal level differences of the pixels occurring in the horizontal or vertical direction of the pixel arrangement can be reduced while avoiding artifacts being generated by the correction carried out for locations where the absolute value of the difference between the statistics should exceed the predetermined value.
The correction is carried out only when the above particular condition is satisfied, but no correction is carried out at least for locations where the absolute value of a difference between statistics should exceed a predetermined value. A process different from the above correction may be carried out or no process may be carried out for such locations. The latter case, i.e. “no process may be carried out”, means that, when the particular condition is not satisfied, no correction is carried out and the signal level of each pixel is not changed, but the unchanged signal level is used as the signal level of the pixel.
In the radiation detection signal processing method for performing the correction only when such a particular condition is satisfied, in order to avoid artifacts, the statistics may be mean values of the signal levels, for example, and the particular condition may be that an absolute value of a difference between the mean values is at most 50. Another example of the particular condition is that the absolute value of the difference between the statistics has at most a fixed ratio to the smaller of the statistics for the two areas. Where the statistics are mean values of the signal levels, the particular condition is that an absolute value of a difference between the mean values is at most 0.1 times the smaller of the mean values. The correction process may be carried out when at least one of the several examples of particular conditions cited above is satisfied, or only when a plurality of particular conditions are all satisfied.
Also in the radiation detection signal processing method for performing the correction only when such particular conditions are satisfied, the statistics may be mean values of the signal levels, medians of the signal levels, modes of the signal levels, or weighted mean values of the signal levels. While the mean values are as described hereinbefore, the median is a value located in a middle position in a group of values of the signal levels. The mode is a value with a maximum count in a histogram. The weighted mean is a mean value with a weight varied according to the distance from the boundary. The predetermined value, preferably, is selected from the range of 25 to 100.
For the purpose of illustrating the invention, there are shown in the drawings several forms which are presently preferred, it being understood, however, that the invention is not limited to the precise arrangement and instrumentalities shown.
Preferred embodiments of this invention will be described in detail hereinafter with reference to the drawings.
As shown in
The fluoroscopic apparatus further includes a top board controller 4 for controlling vertical and horizontal movements of the top board 1, an FPD controller 5 for controlling scanning action of FPD 3, an X-ray tube controller 7 having a high voltage generator 6 for generating a tube voltage and tube current for the X-ray tube 2, an analog-to-digital converter 8 for fetching charge signals from the FPD 3 and digitizing the charge signals into X-ray detection signals, an image processor 9 for performing various processes based on the X-ray detection signals outputted from the analog-to-digital converter 8, a controller 10 for performing an overall control of these components, a memory 11 for storing processed images, an input unit 12 for the operator to input various settings, and a monitor 13 for displaying the processed images and so on.
The top board controller 4 controls movements of the top board 1, such as moving the top board 1 horizontally to place the patient M in an imaging position, vertically moving and/or rotating the top board 1 to set the patient M to a desired position, horizontally moving the top board 1 during an imaging operation, and horizontally moving the top board 1 away from the imaging position after the imaging operation. The FPD controller 5 controls scanning action by moving the FPD 3 horizontally or revolving the FPD 3 about the body axis of patient M. The high voltage generator 6 generates a tube voltage and tube current for the X-ray tube 2 to emit X rays. The X-ray tube controller 7 controls scanning action by moving the X-ray tube 2 horizontally or revolving the X-ray tube 2 about the body axis of patient M, and controls setting of a coverage of a collimator (not shown) disposed adjacent the X-ray tube 3. In time of scanning action, the X-ray tube 2 and FPD 3 are moved while maintaining a mutually opposed relationship, so that the FPD 3 may detect X rays emitted from the X-ray tube 2.
The controller 10 has a central processing unit (CPU) and other elements. The memory 11 has a storage medium, typically a ROM (Read-Only Memory) or RAM (Random Access Memory. The input unit 12 has a pointing device, typically a mouse, keyboard, joy stick, trackball and/or touch panel. The fluoroscopic apparatus creates images of the patient M, with the FPD 3 detecting X rays transmitted through the patient M, and the image processor 9 performing an image processing based on the X rays detected.
The image processor 9 includes a statistic calculator 9A for calculating mean values as statistics relating to a distribution of signal levels of pixels as described hereinafter, and a pixel corrector 9B for correcting each pixel by applying an amount of correction relating to a difference between the mean values to the signal level of each pixel so as to eliminate signal level differences of the pixels occurring horizontally or vertically of the pixel arrangement. The statistic calculator 9A and pixel corrector 9B are also in the form of a central processing unit (CPU) and so on. Specific functions of the statistic calculator 9A and pixel corrector 9B will be described hereinafter with reference to the flow chart shown in
As shown in
As shown in
With a bias voltage applied to a common electrode not shown, the gates of the switching elements 32 are turned on by applying thereto (or reducing to 0V) the voltage of the gate bus lines 36. The carrier collecting electrodes 33 output charge signals (carriers) converted from X rays incident on the detection surface through the X-ray sensitive semiconductor 34, to the data bus lines 39 through the sources S and drains D of the switching elements 32. The charge signals are provisionally stored in capacitors (not shown) until the switching elements are turned on. The amplifiers 38 amplify the charge signals read out to the data bus lines 39, and the multiplexer 37 collects the charge signals, and outputs them as one charge signal. The analog-to-digital converter 8 digitizes the outputted charge signal, and outputs it as an X-ray detection signal.
Next, a series of signal processing by the statistic calculator 9A and pixel corrector 9B in the first embodiment will be described with reference to the flow chart shown in
As shown in
(Step S1) Set 8×8 Areas
Pay attention to a pixel Pij which is the intersection of an i-th pixel column and a j-th pixel row. Two areas are set, including the j-th pixel row, adjoining the boundary BV, and each having eight pixels arranged horizontally and eight pixels arranged vertically (these areas being hereinafter called “8×8 areas”). In
(Step S2) Calculates Mean Values of Right and Left Areas
Next, the statistic calculator 9A (
(Step S3) Calculate Amount of Correction Based on Two Areas
A value is calculated for eliminating the signal level differences occurring in the horizontal direction H, based on the mean value XR of the signal levels of the pixels in the 8×8 area TR in the right area R and the mean value XL of the signal levels of the pixels in the 8×8 area TL in the left area L. Assuming this value to be an amount of correction X, the amount of correction X is derived from the following equation (1):
X=(XL−XR)/2 (1)
(Step S4) Apply Amount of Correction to Signal Levels
To eliminate the signal level differences occurring in the horizontal direction H, the amount of correction X determined in step S3 is applied to the signal levels of all the pixels in the j-th pixel row {P1j, P2j, . . . , Pij, . . . , P(m-1)j and Pmj} in the order of i=1, 2, . . . , m−1 and m. This operation is carried out with the following conditions.
When applying the amount of correction X to the signal levels of the pixels in the j-th pixel row belonging to the left area L, the amount of correction X is subtracted from the signal levels of the pixels (Pij−X). When applying the amount of correction X to the signal levels of the pixels in the j-th pixel row belonging to the right area R, the amount of correction X is added to the signal levels of the pixels (Pij+X).
(Step S5) i=m?
As the amount of correction X is applied to the signal level of each of the pixels in the order of i=1, 2, . . . , m−1 and m, the pixel corrector 9B (
(Step S6) Increment Value of j by 1
Steps S1-S5 described above are executed also for the signal levels of each pixel row {P1j, P2j, . . . , Pij, . . . , Pi(n-1) and Pin} in the order of j=1, 2, . . . , n−1 and n. That is, the value of j is incremented by one for steps S1-S5.
(Step S7) j=n?
As the amount of correction X is applied to the signal level of each of the pixels in the order of j=1, 2, . . . , n−1 and n, the pixel corrector 9B (
With the apparatus in the first embodiment having the above construction, mean values XR and XL are calculated as statistics relating to a distribution of signal levels of the pixels based on X-ray detection signals obtained. When signal level differences occur across the boundary BV extending in the vertical direction V of the pixel arrangement, the statistic calculator 9A calculates the mean values XR and XL for two areas (i.e. the right area R and left area L) divided by the boundary BV. The pixel corrector 9B applies the amount of correction X relating to the difference (XL−XR) between the mean values of the two areas to the signal level of each pixel so as to eliminate the signal level differences noted above. The signal level differences of the pixels occurring in the horizontal direction H of the pixel arrangement are also a type of signal level differences stemming from a distribution of signal levels of the pixels. It is therefore possible to reduce the signal level differences of the pixels occurring in the horizontal direction H of the pixel arrangement by applying the amount of correction X obtained from the mean values XR and XL relating to the distribution of signal levels of the pixels to the signal level of each pixel to correct each pixel.
Since it is not necessary to provide the correction pixels disclosed in Japanese Unexamined Patent Publication No. 2003-87656 noted hereinbefore, versatility is increased with respect to radiation detecting devices represented by the FPD 3 or the like.
The same functions and effects are produced to cope with signal level differences occurring in the vertical direction. This is achieved by replacing the horizontal direction with the vertical direction in the flow chart of
In the fluoroscopic apparatus in the second embodiment, as shown in
Next, a series of signal processing by the statistic calculator 9A and pixel corrector 9B in the second embodiment will be described with reference to the flow chart shown in
(Step S1) Set 4×4 Areas
Pay attention to a pixel Pij which is the intersection of an i-th pixel column and a j-th pixel row. Two areas are set, including the j-th pixel row, adjoining the boundary BV, and each having four pixels arranged horizontally and four pixels arranged vertically (these areas being hereinafter called “4×4 areas”). In
(Step S12) Calculates Mean Values of Right and Left Areas
Next, the statistic calculator 9A calculates a mean value of signal levels of the pixels in the 4×4 area TR in the right area R, and a mean value of signal levels of the pixels in the 4×4 area TL in the left area L. The mean value of the signal levels of the pixels in the 4×4 area TR in the right area R is XR, while the mean value of the signal levels of the pixels in the 4×4 area TL in the left area L is XL. The mean value may be an arithmetic mean of the signal levels of all the pixels in each of the areas TR and TL, or may be a geometric mean of the signal levels of all the pixels in each of the areas TR and TL.
(Step S13) Calculate Difference Between Mean Values of Two Areas
A difference is determined between the mean value XR of the signal levels of the pixels in the 4×4 areas TR in the right area R and the mean value XL of the signal levels of the pixels in the 4×4 area TL in the left area L, i.e. a difference in the mean value between the two areas (XL−XR).
(Step S14) Is Condition A or B Satisfied?
The condition determiner 9a of the pixel corrector 9B (
A. The absolute value of the difference between the mean values (XL−XR) is 50 or less.
When the mean value XR is larger than the mean value XL, the difference between the mean values (XL−XR) constitutes a negative, and therefore the absolute value of the difference is taken. Note that the mean values XR and XL are digital values since the signal levels of the pixels used as the basis for the mean values XR and XL have already been digitized by the analog-to-digital converter 8. Similarly, the absolute value of the difference between the mean values (XL−XR) is also a digital value. The numerical value “50” is a number represented in decimal notation, its actual digital value being “110010” in binary number.
B. The absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value.
When the mean value XL is larger than the mean value XR, the absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value XR. When the mean value XR is larger than the mean value XL, the absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value XL. Note that the mean values XR and XL are digital values, and thus positive values.
(Step S15) Calculate Amount of Correction Based on Two Areas
When step S14 finds that the absolute value satisfies at least one of conditions A and B, a value is calculated for eliminating the signal level differences occurring in the horizontal direction H, based on the mean value XR of the signal levels of the pixels in the 4×4 area TR in the right area R and the mean value XL of the signal levels of the pixels in the 4×4 area TL in the left area L. Assuming this value to be an amount of correction X, the amount of correction X is derived from the following equation (11):
X={(XL−XR)}/2×αt (11)
In the above equation, α is less than one, and is set to 0.97 in this embodiment. Of course, α is not limited to 0.97, as long as it is less than one. Sign t is a distance (i.e. the number of pixels) from the boundary BV to the pixel as shown in
(Step S16) Apply Amount of Correction to Signal Levels
This step the same as step S4 in the first embodiment, and will not be described again.
(Step S17) i=m?
This step is the same as step S5 in the first embodiment, and will not be described again.
(Step S18) Increment Value of j by 1
Steps S11-S17 described above are executed also for the signal levels of each pixel row {Pi1, Pi2, . . . , Pij, . . . , Pi(n-1) and Pin} in the order of j=1, 2, . . . , n−1 and n. That is, the value of j is incremented by one for steps S11-S17.
When neither of conditions A and B is satisfied and steps S15-S17 are skipped to make no correction, the value of j is incremented by one to make a shift to a next pixel row, whereby the conditions A and B are determined with respect to different parts. Thus, when neither of conditions A and B is satisfied, the operation jumps to step S18, and the following step, step S19, is executed in the same way as when at least one of conditions A and B is satisfied.
When neither of conditions A and B is satisfied, the operation skips steps S15-S17 to make no correction of the signal level of each pixel. Thus, the unchanged signal level is used as the signal level of each pixel.
(Step S19) j=n?
As the amount of correction X is applied to the signal level of each of the pixels in the order of j=1, 2, . . . , n−1 and n, whether j=n has been reached is checked. When j<n, the operation returns to step S11 to repeat steps S11 et seq. until j=n is reached. When j=n, all the pixels in the image have been corrected, and the series of signal processing is ended.
With the apparatus in the second embodiment having the above construction, the statistic calculator 9A calculates the mean values XR and XL for two areas (i.e. the right area R and left area L) divided by the boundary BV, as in the first embodiment. The pixel corrector 9B applies the amount of correction X relating to the difference (XL−XR) between the mean values of the two areas to the signal level of each pixel so as to eliminate the signal level differences noted above. The signal level differences of the pixels occurring in the horizontal direction H of the pixel arrangement are also a type of signal level differences stemming from a distribution of signal levels of the pixels. It is therefore possible to reduce the signal level differences of the pixels occurring in the horizontal direction H of the pixel arrangement by applying the amount of correction X obtained from the mean values XR and XL relating to the distribution of signal levels of the pixels to the signal level of each pixel to correct each pixel.
The pixel corrector 9B carries out the correction described above only when the particular condition is satisfied, the condition being that the absolute value of the difference between the mean values does not exceed a predetermined value. Thus, the processing is carried out without performing the correction in steps S16 and S17 for locations where the absolute value of the difference between the mean values (XL−XR) should exceed the predetermined value, such as where, as shown in
In the second embodiment, the particular conditions described above are A: the absolute value of the difference between the mean values (XL−XR) is 50 or less, and B: the absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value. The correction is carried out when at least one of these conditions A and B is satisfied. Conversely, the correction is skipped when neither of the conditions A and B is satisfied.
This invention is not limited to the foregoing embodiments, but may be modified as follows:
(1) In each embodiment described above, the fluoroscopic apparatus has been described by way of example, in the first embodiment as shown in
(2) In each embodiment described above, the flat panel X-ray detector (FPD) 3 has been described by way of example. This invention is applicable to any X-ray detector having detecting elements arranged in a two-dimensional matrix defining pixels.
(3) In each embodiment described above, the X-ray detector for detecting X rays has been described by way of example. This invention is not limited to a particular type of radiation detector which may, for example, be a gamma-ray detector for detecting gamma rays emitted from a patient dosed with radioisotope (RI), such as in an ECT (Emission Computed Tomography) apparatus. Similarly, this invention is applicable to any imaging apparatus that detects radiation, as exemplified by the ECT apparatus noted above.
(4) In each embodiment described above, the FPD 3 is a direct conversion type detector with a radiation (X rays in each embodiment) sensitive semiconductor for converting incident radiation directly into charge signals. Instead of the radiation sensitive type, the detector may be the indirect conversion type with a light sensitive semiconductor and a scintillator, in which incident radiation is converted into light by the scintillator, and the light is converted into charge signal by the light sensitive semiconductor.
(5) In the first embodiment, the amount of correction X is derived from equation (1) (i.e. X=(XL−XR)/2). In the second embodiment, the amount of correction X is derived from equation (11) (i.e. X={(XL−XR)}/2×at). When applying the amount of correction X to the signal level of each pixel included in the j-th pixel row and belonging to the left area L, the amount of correction X is subtracted from the signal level of the pixel (Pij−X). When applying the amount of correction X to the signal level of each pixel included in the j-th pixel row and belonging to the right area R, the amount of correction X is added to the signal level of the pixel (Pij+X). Instead, each pixel may be corrected by applying thereto an amount of correction X′ derived from the following equation (2) in the first embodiment, or from the following equation (12) in the second embodiment:
X′=(XR−XL)/2 (2)
X={(XR−XL)}/2×αt (12)
In the equation (12) above, α is less than one and t is a distance from the boundary to the pixel, as in the second embodiment.
With the amount of correction X′ derived from equation (2) or (12), when applying the amount of correction X′ to the signal level of each pixel included in the j-th pixel row and belonging to the left area L, the amount of correction X′ is added to the signal level of the pixel (Pij+X′). When applying the amount of correction X′ to the signal level of each pixel included in the j-th pixel row and belonging to the right area R, the amount of correction X′ is subtracted from the signal level of the pixel (Pij−X′). A similar correction may be performed for the vertical direction also.
(6) In the first embodiment described hereinbefore, the amount of correction X is derived from equation (1) (i.e. X=(XL−XR)/2), and this amount of correction X is applied to the signal level of each pixel to correct the pixel. This could result in an excessive correction. Thus, as in the following equation (3), the amount of correction X may be multiplied by a fixed rate a to be made smaller. In the equation, α is less than one.
Y=α·X=α·(XL−XR)/2 (3)
This amount of correction Y may be applied to the signal level of each pixel to correct the pixel. It has been confirmed through experiment that a at about 0.7 realizes an appropriate correction. A similar correction may be performed for the vertical direction also.
(7) In the first embodiment described hereinbefore, the amount of correction X is derived from equation (1) (i.e. X=(XL−XR)/2), and this amount of correction X is applied to the signal level of each pixel to correct the pixel. The signal level differences appear notably near the boundary. The farther away the pixel is from the boundary, that is the longer the distance is from the boundary to the pixel, the less influence the signal level difference has on the signal level of that pixel. Thus, a correction may be made with a weighting as in the second embodiment.
That is, where the distance (i.e. the number of pixels) from the boundary BV to the pixel is t as shown in
Y′=α·X/(t−α) (4)
The signal level differences between the pixels can be reduced further by applying the amount of correction Y′ derived from equation (4) to the signal level of each pixel to correct the pixel. It has been confirmed through experiment that a at about 0.02 to 0.05 realizes an appropriate correction. A similar correction may be performed for the vertical direction also.
Distance t is not limited to the number of pixels, but may be a value proportional to the number of pixels, or a value with a predetermined number added to the number of pixels.
The invention is not limited to any particular weighting modes including the weighting with the multiplication by at with a being less than one as in equation (11) in the second embodiment, or the weighting as in equation (4) in the above modification relating to the weighting of the first embodiment. For example, only distance t may be the denominator in equation (4) above. Amount of correction Y′ may be a value obtained by subtracting distance t instead of the division by distance t. The equation (11) in the second embodiment may be replaced by the following equation (13) or (14) in which a weight is assigned by making distance t a denominator:
X=(XL−XR)/2×1/t (13)
X=(XL−XR)/2×β/(t−β) (14)
It has been confirmed through experiment that beta at about 0.02 to 0.05 realizes an appropriate correction.
Thus, the invention is not limited to equation (4) or equation (11) noted above, as long as the smaller weight is assigned for the longer distance t from the boundary BV to the pixel, and each pixel is corrected by applying such statistics represented by mean values to the signal level of the pixel.
(8) In the second embodiment described hereinbefore, the amount of correction X reflecting a weighting is calculated as in equation (11) (X={(XL−XR)}/2×αt), and the amount of correction X is applied to the signal level of each pixel to make a correction in a way to avoid an excessive correction. As long as an excessive correction is avoided, as also shown in
X=(XL−XR)/2 (15)
For removing the weight from equation (12) noted above, the mean values XR and XL in the above equation (15) may be interchanged. The weight may be removed similarly for the vertical direction also.
(9) In each embodiment described hereinbefore, the mean values are those of the signal levels of the 8×8 areas or 4×4 areas TR and TL sampled from the right and left areas R and L. Instead, mean values of the signal levels of all the pixels may be used. That is, the invention may use mean values of the signal levels of at least part of the pixels. A similar correction may be made for the vertical direction also.
(10) In each embodiment described hereinbefore, the mean values are an example of statistics relating a distribution of signal levels of the pixels. The invention is not limited to the mean values, but may use any statistics usually available. Such a statistic is, for example, a median of the signal levels, a mode of the signal levels, and a weighted mean of the signal levels. The median is a value located in a middle position in a group of values of the signal levels. The mode is a value with a maximum count in a histogram. The weighted mean is a mean value with a weight varied according to the distance from the boundary (i.e. a weighted mean value). Two or more different statistics may be combined, such as a combination of a mean value and a median.
(11) In the second embodiment described hereinbefore, the particular conditions are A: the absolute value of the difference between the mean values (XL−XR) is 50 or less, and B: the absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value. The particular conditions are not limited to the above, as long as the absolute value of the difference between the statistics (e.g. mean values) does not exceed a predetermined value. For condition A, the predetermined value is digital value 50 (in decimal notation), but it is not limited to 50. However, even where the statistics are other than mean values, it is preferable that condition A has the absolute value of the difference between the statistics at 50 or less. In the case of a predetermined value other than 50, it is preferable to select a value from the range of 25 to 100. For condition B, the fixed multiplying factor used is 0.1 or less. However, the absolute value of the difference between the statistics may be more than 0.1 times the smaller statistic. Preferably, the fixed multiplying factor is less than one.
(12) In the second embodiment described hereinbefore, the particular conditions are A: the absolute value of the difference between the mean values (XL−XR) is 50 or less, and B: the absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value. It is possible to use a combination of other particular conditions in which the absolute value of a difference between statistics is less than a predetermined value. Conversely, only one of conditions A and B may be used as a particular condition. Of course, a particular condition other than A and B in which the absolute value of a difference between statistics is less than a predetermined value may be used alone, and a correction process may be carried out only when this condition is satisfied.
(13) In the embodiment described hereinbefore, the particular conditions are A: the absolute value of the difference between the mean values (XL−XR) is 50 or less, and B: the absolute value of the difference between the mean values (XL−XR) is 0.1 or less times the smaller mean value. A correction process is carried out when at least one of the conditions A and B is satisfied. Instead, a correction process may be carried out only when the conditions A and B are both satisfied. This applies also to conditions other than the particular conditions A and B.
(14) In the embodiment described hereinbefore, when neither of the particular conditions is satisfied, no correction is carried out but the unchanged signal level is used as the signal level of each pixel. This is not limitative. That is, if no correction is carried out at least for locations where the absolute value of a difference between statistics should exceed a predetermined value, a process different from the described correction may be carried out. For example, when the particular conditions are not satisfied, the signal levels of all the pixels may be multiplied equally.
This invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof and, accordingly, reference should be made to the appended claims, rather than to the foregoing specification, as indicating the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2004-126578 | Apr 2004 | JP | national |
2004-240723 | Aug 2004 | JP | national |