Abstract:
An edge correction circuit and method for enhancing image definition by reducing a conversion time at an region of a luminance signal in a digital image processor, said method including the steps of and the circuitry for: (a) generating a first control signal by detecting a pixel where a image luminance signal starts to change; (b) converting and outputting a pixel level state which is the same as the state before conversion of an edge region while said first control signal is being generated; (c) generating a second control signal by detecting a pixel prior to the luminance signal stabilization; and (d) outputting a pixel level state which is the same as the state after a complete conversion of the edge region which the second control signal generates.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to an image edge correcting circuit and method for a digital image processor. 
     A general edge correcting circuit for an image in a television receiver is composed as shown in FIG. 1 and uses a correcting method to sharpen an edge of an image on a CRT which extracts outline components of an image luminance signal &#34;Y&#34; by passing a band pass filter or a high pass filter, mixes the extracted signal with a gain control signal in a multiplier (2), and then adds the image luminance signal &#34;Y&#34; to the mixed signal in an adder (3). 
     The process is hereinafter described with reference to the waveforms of FIG. 2. 
     When the image luminance signal &#34;Y&#34; is as in &#34;2a&#34; of FIG. 2, the extracted edge of the image luminance signal &#34;Y&#34; through the filter (1) is as in &#34;2b&#34; of FIG. 2. After the edge of the image luminance signal &#34;Y&#34; is extracted, the extracted edge components signal &#34;2b&#34; of the image luminance signal &#34;Y&#34; is mixed with the gain control signal by the multiplier (2), and then added to the image luminance signal &#34;Y&#34; at the adder (3) to output a final edge-corrected signal &#34;2c&#34;. If the final edge-corrected signal as in &#34;2c&#34; is scanned on a CRT, a difference of the luminance signal between a dark portion and a bright portion is about &#34;H2&#34; which is more effective than &#34;H1&#34; the result of scanning the image luminance signal &#34;Y&#34; as is shown in &#34;2a&#34;. Therefore, the general edge correcting circuit for an image which extracts an edge of an image helps viewers to enjoy a vivid image by increasing the contrast of the edge. 
     Also, by using a digital differential amplifier as in FIG. 3, the edge correcting circuit for an image stated above can become a digital edge correcting circuit. By sampling and quantizing the analog image luminance signal &#34;Y&#34;, the analog image luminance signal Y&#39; becomes a digital image luminance signal Y&#39; as is shown in &#34;4a&#34;. After the digital image luminance signal Y&#39; of &#34;4a&#34; goes through a first delay circuit (102), the signal is delayed as in &#34;4b&#34;, and the digital luminance signal &#34;4b&#34; passed through the first delay circuit (102) becomes as in &#34;4c&#34; after being outputted by a second delay circuit (103). A signal as in &#34;4d&#34; is obtained at a first subtractor &#34;104&#34; by subtracting the digital luminance signal &#34;4a&#34; from the first delayed digital luminance signal &#34;4b&#34;, and a signal as in &#34;4e&#34; is obtained at a second subtractor (105) by subtracting the second delayed digital luminance signal &#34;4c&#34; from the first delayed digital luminance signal &#34;4b&#34;. A signal &#34;4f&#34; is generated at a first adder (106) by adding the signal &#34;4d&#34; from the first subtractor (104) and the signal &#34;4e&#34; from the second subtractor (105). The signal &#34;4f&#34; from the first adder (106) is mixed with a gain control signal, by means of the multiplier (107), and then added to a signal from a delay circuit (101) at a second adder (108) to generate a edge-corrected digital luminance signal for an image &#34;4g&#34;. The edge-corrected digital luminance signal for an image &#34;4g&#34; is converted to an analog signal as shown in the dotted line, by D/A a converter (not shown). 
     In the first edge-corrected circuit as in FIG. 1 or the second edge-corrected circuit as in FIG. 3, a delay-correction differs according to the constitution of a filter (1) or the first and second subtractors (104) and (105), which determined the frequency band for the edge-corrected circuit. Thus, the conventional method uses the image luminance signal for correcting a edge region. Hence, when the image is displayed on a CRT or a Display Unit, the conventional method sharpens a edge region by increasing a difference of level of a luminance signal at a boundary region, whether the circuit is used in an analog system or digital system. 
     However, when the stated conventional method is used to correct a edge of a bright boundary region where the signals represent white captions and capitals, an excessive current flows at the edge of a boundary region which results, in turn, in a serious drawback in that a blurring phenomenon results around the boundary region on the CRT display. 
     SUMMARY OF THE INVENTION 
     It is therefore an object of the present invention to provide an image edge correction circuit and method that sharpens a edge region by reducing correction time at a level-variation region of the image luminance signal in a digital image processor. 
     It is another object of the present invention to provide a circuit and a method that generate a sharp edge-corrected signal without depending on a condition of a signal in an image for a digital image processor. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     For a better understanding of the invention and to show how the same may be carried into effect, reference will now be made, by way of example, to the accompanying diagrammatic drawings, in which: 
     FIG. 1 is a diagram of a first prior art edge-correcting circuit; 
     FIG. 2 is a waveform diagram of signals occurring in the FIG. 1 circuit; 
     FIG. 3 is a diagram of a second prior art edge-correcting circuit; 
     FIG. 4 is a waveform diagram of the signals occurring in the FIG. 3 circuit; 
     FIG. 5 is a edge correcting circuit according to the present invention; 
     FIG. 6 is a waveform diagram of the signals occurring in the FIG. 5 circuit; and 
     FIG. 7 is a comparative diagram of waveforms in edge correction. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Turning now more descriptively to the drawings, a detailed explanation of the invention will be given hereinafter. 
     Referring to FIG. 5, first through fourth delay circuits (11-14) are connected in series to sequentially delay a digitized first luminance signal for an image by a prescribed amount, and generate second through fifth luminance signals for an image respectively. First through fourth subtractors (21-24) generate first through fourth subtracted signals by subtracting first through fourth luminance signals from second through a fifth luminance signals respectively. First through fourth absolute value circuits (31-34) calculate absolute values from first through fourth subtracted signals. First through fourth comparators (41-44) generate first through fourth noise reduced compared signals by comparing a given reference signal with outputs from the first through the fourth absolute value circuits (31-34). A first gate (51) generates a second control signal by logically multiplying an inverse signal of the first compared signal by the second compared signal. A second gate (52) generates a first control signal by logically multiplying an inverse signal of the fourth compared signal by the third compared signal. A data selector (60) selectively outputs any one of the second through the fourth luminance signals for an image by taking the first and the second control signals as selective signals after inputting the third luminance signal to the first and the fourth input terminals, the second luminance signal to the second input terminal, and the fourth luminance signal to the third input terminal. 
     Therefore, by correcting a edge of the image luminance signal according to the above described invention, correction time at level-variation region of the image luminance signal is reduced. In other words, a edge portion of the luminance signal becomes less in duration because the data selector (60) outputs the third luminance signal when the first and the second control signals are &#34;00&#34; or &#34;11&#34;, outputs the second luminance signal when the first and the second control signals are &#34;01&#34;, and outputs the fourth luminance signal when the first and the second control signals are &#34;10&#34;. 
     FIG. 6 is a waveforms diagram of each of the signals occurrence in the FIG. 5 circuit, wherein; 
     Waveforms &#34;6A-6E&#34; are the first through the fifth luminance signals; 
     Waveforms &#34;6F-6I&#34; are the first through the fourth compared signals; 
     Waveforms &#34;6J-6K&#34; are the first and the second control signals; and 
     Waveform &#34;6L&#34; is the final corrected luminance signal which is outputted from the data selector (60) according to the first and the second control signals. 
     FIG. 7 is a comparative diagram of waveforms from an edge correcting circuit of prior art and of edge correcting circuit of the present invention. 
     The present invention is now described in more detail, based on the constitution with a reference to FIGS. 5, 6, and 7. 
     When the digitized luminance signal &#34;6A&#34; is input into the first through the fourth delay circuits (11-14) in series, the second through the fifth luminance signals which are delayed by the delay circuit are generated as shown in &#34;6B-6E&#34;. The first through the fourth delay circuits (11-14) can consist of D flip-flops, and the delay time of the delay circuit is one sampling clock cycle delaying the luminance signal. Thus, the first through the fifth luminance signals are the luminance signals which are delayed by one sampling period interval. In an actual digital signal processing circuit, a sampled quantized step value is held for one sampling clock period, but is shown as a dot in FIG. 6 for an ease of explanation. Therefore, the dot in FIG. 6 means a sampled luminance signal. 
     The first through the fourth luminance signals as in &#34;6A-6D&#34; and the second through the fifth luminance signals as in &#34;6B-6E&#34; are applied to the first through the fourth subtractors (21-24) respectively. The first through the fourth subtractors subtract one signal from the other, resulting in a zero, positive value, or negative value. If the result is not zero, it means that the level of the luminance signal is changing. Therefore, the first subtractor (21) outputs a non-zero positive data at &#34;t2&#34;, &#34;t3&#34;, and &#34;t4&#34; of FIG. 6. Also, the first subtractor (21) outputs non-zero negative data at &#34;t10&#34;, &#34;t11&#34;, and &#34;t12&#34; of FIG. 6. The outputs from the first through the fourth subtractors at &#34;t1-t16&#34; of FIG. 6 can be shown as in table 1. 
     
                       TABLE 1______________________________________            RESULT           POSITIVE  NEGATIVE______________________________________FIRST SUBTRACTOR  t2-t4       t10-t12SECOND SUBTRACTOR t3-t5       t11-t13THIRD SUBTRACTOR  t4-t6       t12-t14FOURTH SUBTRACTOR t5-t7       t13-t15______________________________________ 
    
     As shown in table 1, the first through the fourth subtractors (21-24) output either a positive or a negative value where the level of luminance signal changes. The outputs from the first through the fourth subtractors (21-24) are applied to the first through the fourth absolute value circuits (31-34) respectively and became same valued positive numbers regardless of their signs. Thus, the negative data from the first through the fourth subtractors (21-24) are converted to positive data, by passing through the first through the fourth absolute value circuits (31-34). The outputs from the first through the fourth absolute value circuits (31-34) are applied to the first through the fourth comparators (41-44) for a comparison with an applied reference signal. When the output signal from the absolute value circuits (31-34) is greater than the reference signal, a logical high signal(&#34;1&#34; ) as in (6F-6I) is generated. The reason for a comparison between the reference signal and the signals from the first through the fourth subtractors at the first through the fourth comparators (41-44) is to prevent a malfunction by removing noise using the reference signal because there can be a difference between two of the same luminance signals applied to the subtractor due to noise in an actual luminance signal. 
     Therefore, the first through the fourth comparators prevent a malfunction due to noise in the luminance signal, and generate a logical high signal (&#34;1&#34; ) when a difference in the delayed signal is higher than the given reference level, that is, when the level of the luminance signal is changing with time. Also, when a difference in the delayed signal is lower than the given reference level, that is, when the level of the luminance signal is not changing with time, a logical zero signal (&#34;0&#34;) is generated. Therefore, when the first luminance signal as in &#34;6A&#34; which stays in a black level for a specific period and then changes to a white level which changes back to the black level after the specific period enters and is delayed by one sampling period interval at the first through the fourth delay circuits (11-14) as in &#34;6B-6E&#34;, the first and the fourth compared signals as in &#34;6F-6I&#34; are generated only during a transitional period where the level of the luminance signal is changing. 
     At the first gate (51), the second compared signal and the inverse signal of the first compared signal are logically multiplied to generate the second control signal &#34;6J&#34;. At the second gate (52), the third compared signal and the inverse signal of the fourth compared signal are logically multiplied to generate the first control signal &#34;6K&#34;. Thus, the first control signal becomes the logical signal &#34;1&#34; when the level of a base signal stops changing as at time &#34;t4&#34; and &#34;t12&#34;. Otherwise, the first control signal stays a logical zero. Also, the second control signal becomes the logical &#34;1&#34; signal just before a stable state, as at times &#34;t5&#34; and &#34;t13&#34;, of the third luminance signal. Otherwise, the second control signal stays a logical zero. Therefore, the first and the second control signals are &#34;00&#34; when the third luminance signal &#34;6C&#34; is the first and second luminance signals before delay and the fourth and fifth luminance signals after delay that are not changed and will not be changed in compared value. The first and the second control signals become &#34;10&#34; where the third luminance signal starts to change its level from the stable state and becomes &#34;01&#34; just before the third luminance signal starts to stabilize from a changing state. 
     The first and the second control signals, which change as stated above, are applied to the data selector (60) as a selection control signal. The data selector (60) takes the third luminance signal as an input to the first and the fourth input terminals, the second luminance signal as an input to the second input terminal, and the fourth luminance signal as an input to the third input terminal. Therefore, the data selector (60) outputs by selecting the third luminance signal when the first and the second control signals are &#34;00&#34; or &#34;11&#34;, outputs by selecting the fourth luminance signal when the control signals are &#34;10&#34; as in &#34;t4&#34; and &#34;t12&#34;, and outputs by selecting the second luminance signal when the control signals are &#34;01&#34; as in &#34;t5&#34; and &#34;t13&#34;. Therefore, a final luminance signal from the data selector &#34;60&#34; becomes the edge corrected signal which requires less conversion time where the level of the luminance signal changes, as shown &#34;6L&#34; of FIG. 6. 
     As shown in FIG. 7, the edge correction is achieved by reducing the conversion time and detecting a starting point and an ending point of a edge region in a signal, that is by outputting data just before a change as in &#34;7C&#34; where the luminance signal &#34;7A&#34; starts to change as in &#34;T1&#34; and &#34;T3&#34;, and outputting data from a stabilized point where the point just before the stabilization from a changing state starts as in &#34;T2&#34; and &#34;T4&#34;. Thus, as shown in &#34;7B&#34;, it is possible to display the luminance signal vividly by reducing the time to change levels as in &#34;7C&#34; without changing an amplitude of a signal level during the edge correction. 
     In addition, if the components in FIG. 5 are connected in multiple steps series, a certain edge correction can be achieved even though the time for the luminance signal level change is increased. 
     As stated above, by applying the edge correcting circuit in a digital image processor, a sharp edge of an image can be effectively generated regardless of a contrast in a pixel of a boundary region by reducing the conversion time of a signal level in the edge of the image. 
     Although specific constructions and procedures of the invention have been illustrated and described herein, it is not intended that the invention be limited to the elements, the constructions and the method disclosed. One skilled in the art will easily recognize that the particular elements, subconstructions and similar methods may be used without departing from the scope and spirit of the invention.