The present invention relates to the adjustment of the dot clock in a matrix display device such as a liquid-crystal panel, digital micromirror device (DMD), plasma display panel (PDP), or field-emission display (FED).
These devices commonly use an analog-to-digital converter (ADC) to convert an analog image signal to the digital the signal needed for a matrix display. The dot clock is the sampling clock of the ADC. Before the display of the image begins, the dot clock must be adjusted in frequency and phase so that the analog image signal will be sampled at the correct points. Various methods of performing these adjustments automatically are known.
For example, Japanese Unexamined Patent Application No. 11-175033 discloses the liquid crystal display device shown in
After the dot-clock frequency has been adjusted in this way, the clock phase automatic adjusting means 103 detects the phase difference between the image signal and the dot clock, and generates a voltage that increases with this difference. The control means 107 uses this voltage signal to adjust the phase of the dot clock so that transition points in the image-signal waveform coincide with transition points in the dot-clock waveform. After the phase adjustment, the image detector 105 again detects the start of the image, and the control means 107 uses the result to control the pulse generator 106 so that each horizontal line of the displayed image starts at the left edge of the display screen.
A problem with this method is that it assumes that the image is always intended to fill the entire width of the display screen. The adjustment fails when this assumption is false, as when an image with a black border is displayed.
As another example of the prior art, Japanese Unexamined Patent Application No. 11-177847 discloses a device that automatically adjusts the frequency and phase of the dot clock so as to maximize the absolute difference between the values of adjacent pixels.
To explain this method,
One problem with this method is illustrated in
There are also cases (not illustrated) in which different dot-clock frequencies produce the same average absolute difference, or in which the average absolute difference increases as the dot-clock frequency moves away from the correct frequency. Adjusting the dot-clock frequency according to the average absolute difference between adjacent pixel values thus turns out to be an uncertain process, and the adjustment does not necessarily succeed unless all possible frequencies are tested one by one, a very time-consuming operation.
An object of the present invention is to provide a dot-clock adjustment method that does not require a screen-filling image.
Another object of the invention is to provide a dot-clock adjustment method that can quickly and accurately distinguish between correct and incorrect dot-clock frequencies. The invented dot-clock adjustment method comprises the steps of:
(a) sampling an image signal in synchronization with a dot clock having a certain frequency and phase;
(b) calculating a first image characteristic from the differences between consecutively sampled values over a certain interval in the image;
(c) repeating steps (a) and (b) while varying the dot-clock phase, thereby measuring the first image characteristic over a range of phase values;
(d) deciding whether the frequency of the dot clock is correct, according to the results obtained in step (c); and
(e) changing the frequency of the dot clock, and repeating steps (a) to (d), if the frequency is incorrect.
The first image characteristic may be, for example, a maximum or minimum difference between consecutively sampled values, the histogram distribution of the difference values, or a ratio calculated from the histogram distribution.
The invented method may also comprise the steps of:
(f) detecting a second image characteristic from the difference between consecutively sampled values when the dot-clock frequency is correct;
(g) repeating step (f) while varying the dot-clock phase, thereby measuring the second image characteristic over a range of phase values; and
(h) adjusting the phase of the dot clock according to the results obtained in step (g).
The second image characteristic may be, for example, the maximum or minimum difference between adjacent pixel values, or the difference between the values of a particular pair of pixels.
The invention also provides apparatus employing the invented dot-clock adjustment method.
In the attached drawings:
Embodiments of the invention will be described with reference to the attached drawings, in which like parts are indicated by like reference characters.
Referring to
The controller 6 comprises a computing device such as a microprocessor or microcontroller. The controller 6 includes memory circuits (not visible) storing information about standard image signal formats, such as the formats recommended by the Video Electronics Standards Association (VESA).
The image processor 8 comprises, for example, a digital signal processor. The other elements in
Referring to
Next, the dot-clock frequency and phase adjustment operations will be described.
Besides separating the horizontal and vertical synchronizing signals, the synchronizing signal processor 2 controls the polarity of these signals, discards unnecessary pulses such as equalizing pulses, and supplies missing necessary pulses to generate correct horizontal and vertical synchronizing signals for input to the synchronizing signal measurement circuit 3, dot-clock generator 4, and timing generator 9. The synchronizing signal measurement circuit 3 measures at least the period, pulse width, and polarity of these synchronizing signals.
The controller 6 compares the information obtained by the synchronizing signal measurement circuit 3 with the above-mentioned information about standard image signal formats, selects the standard format that matches the measured results most closely, and sets the dot-clock generator 4 so as to generate a dot clock having the frequency specified in the selected standard format. The dot-clock generator 4 supplies the dot clock to the ADC 1, image-characteristic detector 5, and line memory 7. At this point, the dot clock may have any phase.
The ADC 1 now begins sampling the input image signal, and the image-characteristic detector 5 begins detecting absolute differences between adjacent pixels. After a specified interval (one frame, for example), the image-characteristic detector 5 informs the controller 6 of the maximum absolute difference detected in the interval. The controller 6 stores this information, then changes the dot-clock phase by controlling the dot-clock generator 4.
The above process is now repeated, as the ADC 1 samples the input image signal in synchronization with the new dot clock. The image-characteristic detector 5 obtains another maximum absolute difference for an interval of the same length as before. The controller 6 stores the new difference value, then changes the dot-clock phase again.
Continuing in this way, the controller 6 obtains a sequence of maximum absolute difference values characterizing different dot-clock phases as shown, for example, in
If the sequence of maximum absolute difference values obtained from the image-characteristic detector 5 has at least one extremum, the controller 6 accepts the present dot-clock frequency as correct, and proceeds to the phase-adjustment operation.
If the sequence of maximum absolute difference values has no extrema, the controller 6 rejects the current dot-clock frequency, and selects another frequency. The above process is then repeated at this new dot-clock frequency. The controller 6 changes the dot-clock frequency as often as necessary until a frequency producing a characteristic curve with at least one extremum is found.
Strictly speaking, any sequence that includes at least two different values has an extremum, but the controller 6 need not use this strict definition. Preferably, the controller 6 determines the amount of variation in the sequence of values output by the image-characteristic detector 5, and recognizes the presence of an extremum if the amount of variation exceeds a predetermined level. The amount of variation may be calculated as, for example, the difference between the highest and lowest values in the sequence, the non-linearity of the curve, or in various other ways.
When the correct dot-clock frequency has been found, the controller 6 re-examines the sequence of maximum absolute difference values obtained at this frequency to find a dot-clock phase that produces the largest maximum value. The controller 6 then adjusts the dot clock to this phase by controlling the dot-clock generator 4.
This completes the adjustment of the dot clock. The line memory 7 now begins storing the image data output by the ADC 1, and the image processor 8 begins reading the image data from the line memory 7 and performing such processes as zoom adjustment, brightness and contrast adjustment, edge enhancement, noise reduction, gamma correction, and color correction. The processed image is displayed on the display unit 10.
The dot-clock adjustment procedure is summarized in FIG. 10. After input of the synchronizing signals begins (step S1) an initial dot-clock frequency fDOTCLK is set (step S2) the dot clock is generated at this frequency (step S3), and the image signal is sampled in synchronization with the dot clock (step S4). The image-characteristic detector 5 measures the maximum absolute difference between adjacent pixel values over a specified interval (step S5). After this measurement is completed, the controller 6 changes the dot-clock phase (step S6). In this step, the dot-clock phase is, for example, advanced by a predetermined amount. Steps S3 to S6 are repeated until, for example, the dot-clock phase has been advanced by a total amount equal to at least one complete phase cycle (360°). The controller 6 then decides, from the maximum absolute difference values measured in step S5, whether the current dot-clock frequency fDOTCLK is correct (step S7).
If the dot-clock frequency is found to be incorrect in step S7, because the maximum absolute difference characteristic lacks sufficient variation, the dot-clock frequency is changed (step S8). For example, the controller 6 increments a frequency division ratio used in the dot-clock generator 4 by a predetermined amount (n). The entire loop from step S3 to step S7 is then repeated. If the result in step S7 is again that the dot-clock frequency is incorrect, it is changed once more. This time, for example, the frequency division ratio may be set to a value n less than the initial value. If necessary, frequency division ratios differing from the initial ratio by ±2n, ±3n, and so on may be tested until the correct dot-clock frequency is found.
When the correct dot-clock frequency has been found, the process branches from step S7 to select the dot-clock phase yielding the maximum absolute difference value (step S9). The dot clock is set to this phase (step S10) without changing the frequency selected as correct in step S7. The image signal is now sampled at the selected phase and frequency (step S11) and the sampled values are written in the line memory 7 (step S12) for further image processing and display.
This dot-clock adjustment method does not depend on detection of the starting and ending points of image information in the image signal to set the dot-clock frequency, so it is applicable regardless of the width of the displayed image.
This method also provides criteria for deciding whether each tested dot-clock frequency is correct or incorrect according to image-characteristic information obtained at the tested frequency. Thus, if the initial dot-clock frequency set in step S2 is correct, this will be recognized in step S7 without the need to test other frequencies. Accordingly, in the numerous cases in which the controller 6 identifies the image-signal format correctly from the information output by the synchronizing signal measurement circuit 3, the dot-clock adjustment process can be completed relatively quickly.
Next, a second embodiment will be described. The second embodiment uses a different characteristic to adjust the phase of the dot clock.
Referring to
The other elements shown in
The second embodiment adjusts the dot-clock frequency by the same procedure as in the first embodiment, following steps S1 to S8 in FIG. 10. After finding the correct frequency, however, the controller 6 branches from step S7 to the procedure shown in FIG. 12.
The dot-clock generator 4 continues to generate the dot clock (step S14) at the frequency identified as correct in step S7. The ADC 1 samples the image signal in synchronization with the dot clock (step S15). The absolute-difference calculator 11 detects the absolute difference between adjacent pixel values, and the absolute-difference buffer 14 stores the absolute difference between the two pixels at the location designated by the address specifier 13 (step S16). The controller 6 then changes the dot-clock phase (step S17), without changing the dot-clock frequency, and returns to step S14. The procedure from step S14 to step S17 is repeated for at least one complete dot-clock phase cycle (360°). The location designated by the address specifier 13 does not change. Each time, the absolute-difference buffer 14 stores the absolute difference between the values of the same two pixels. At the end of these repetitions, the absolute-difference buffer 14 stores a set of values forming a characteristic curve such as the one illustrated in FIG. 13.
The controller 6 now selects the phase that produced the maximum value stored in the absolute-difference buffer 14 (step S18). Steps S14 to S18 thus replace step S9 in the first embodiment (FIG. 10).
The succeeding steps (S10, S11, 512) are the same as in the first embodiment. The dot-clock generator 4 is set to the selected frequency and phase, the image signal is sampled with this frequency and phase, and the sampled values are stored in the line memory 7 for further processing and display.
By examining the absolute difference between a particular pair of pixels, the second embodiment can usually obtain a characteristic curve with a single well-defined maximum, as in
A further advantage of the second embodiment is that the characteristic curve obtained from a single pair of pixels is unlikely to be affected by clock jitter or noise.
Next, a third embodiment will be described. The third embodiment uses the maximum absolute difference characteristic to select the address used in the second embodiment.
Referring to
The other elements of the third embodiment have the configuration shown in
The third embodiment adjusts the dot-clock frequency by substantially the same procedure as in the first embodiment, following steps S1 to S8 in FIG. 10. Each time the maximum-value detector 15 detects the maximum absolute difference in step S5, however, it also stores the pixel address at which the maximum absolute difference occurs in the address register 16. After the correct dot-clock frequency is found in step S7, the address register 16 holds the address of a pair of pixels that yielded a maximum absolute difference at this dot-clock frequency. The controller 6 now branches from step S7 to the procedure shown in FIG. 15.
This procedure is identical to the procedure used in the second embodiment, except that the address register 16 outputs the address detected in step S5 as yielding a maximum absolute-difference value, the last time step S5 was performed during the frequency adjustment process, and the absolute-difference buffer 14 stores the absolute difference between the pair of pixels at this address (step S19). The address register 16 continues to supply the same address while steps S14, S15, S19, and S17 are repeated for at least one complete dot-clock phase cycle (360°). At the end of the cycle, the absolute-difference buffer 14 stores a set of values forming a characteristic curve such as the one illustrated in FIG. 13. The controller 6 selects the phase that produced the maximum value stored in the absolute-difference buffer 14 (step S18), the dot-clock generator 4 is set to the selected frequency and phase (step S10), the image signal is sampled with this frequency and phase (step S1l), and the sampled values are stored in the line memory 7 for further processing and display (step S12).
The third embodiment provides the same effects as the second embodiment, but in the phase-adjustment process, by selecting a pair of pixels at which a maximum absolute difference value was detected earlier, the third embodiment ensures that a difference actually exists between the two selected pixels, and that the difference is relatively large, in comparison with the differences between other pairs of pixels.
For example, if the displayed image is a natural image with a black border, the third embodiment may select a comparatively bright pixel at an edge of the natural image and an adjacent pixel in the black border, thereby obtaining a greater absolute difference than could be obtained by selecting two pixels within the natural image itself. As a result, the characteristic curve obtained in the phase-adjustment procedure will have clearly defined maxima and minima, enabling the phase to be adjusted accurately.
In a variation of the third embodiment, instead of using the address that happens to be left in the address register 16 at the end of the frequency-adjustment procedure, the controller 6 provisionally selects a phase that maximized the maximum absolute difference characteristic, as in the first embodiment, and sets the dot clock to this phase. The image-characteristic detector 5 then measures the maximum absolute difference characteristic again, to load the address register 16 with the address of a pair of pixels that produce a maximum absolute difference at the provisionally selected phase. After this address has been determined, the procedure is
Next, a fourth embodiment will be described. The fourth embodiment adjusts the dot-clock phase as in the third embodiment, but adjusts the dot-clock frequency differently.
Referring to
The other elements of the fourth embodiment have the configuration shown in FIG. 6. The elements other than the image-characteristic detector 5 and controller 6 operate as described in the preceding embodiments.
Referring to
The histogram distribution detector 17 counts the number of times each absolute difference value is detected during an interval of one frame, for example, thereby obtaining the distribution of absolute difference values. To reduce the amount of distribution data, instead of counting each absolute difference value separately, the histogram distribution detector 17 may group the absolute difference values into a set of ranges, and obtain a single count for each range.
The differences between these histograms can be quantified in various ways, e.g., by measuring the total difference between corresponding counts, or the maximum difference between corresponding counts.
Steps S6 to S8 in
When a correct dot-clock frequency is recognized in step S7, the controller 6 selects the phase of the dot clock as described in the third embodiment (step S22). Specifically, the maximum-value detector 15 detects the address of a pair of pixels that produce a maximum absolute difference value at the correct dot-clock frequency and a certain dot-clock phase; the address register 16 stores this address; the absolute-difference buffer 14 stores absolute-difference data for this pair of pixels as the dot-clock phase is shifted through one complete cycle (360°); and the controller 6 selects the dot-clock phase that maximizes this absolute difference.
The remaining steps (S10, S11, S12) are the same as in the preceding embodiments: the dot-clock generator 4 is set to the selected dot-clock frequency and phase, the image signal is sampled at this frequency and phase, and the samples are output to the line memory 7 for further processing and display.
An advantage of the fourth embodiment is that each dot-clock frequency can be evaluated with fewer different phase settings than are necessary in the preceding embodiments, because a histogram distribution provides more information than does a single maximum absolute difference value. The frequency adjustment can thus be completed more quickly than in the preceding embodiments.
Next, a fifth embodiment will be described. The fifth embodiment differs from the fourth embodiment in that the histogram distribution is reduced to a single ratio value.
Referring to
The other elements of the fifth embodiment have the configuration shown in FIG. 6. The elements other than the image-characteristic detector 5 and controller 6 operate as described in the preceding embodiments.
The fifth embodiment follows the dot-clock adjustment procedure described in the fourth embodiment, except that instead of determining how an entire histogram distribution varies as the dot-clock phase varies, the controller 6 only has to determine how the ratio supplied by the histogram ratio detector 18 varies. The current dot-clock frequency is recognized as correct if the variation in this ratio exceeds a predetermined level, and as incorrect of the variation does not exceed the predetermined level.
Compared with the fourth embodiment, the fifth embodiment reduces the amount of computation needed to compare different histogram distributions.
Compared with the first embodiment, the fifth embodiment enables the correct dot-clock frequency to be recognized from large variations in either the maximum absolute difference or the sum of histogram counts near that difference. The correct dot-clock frequency can accordingly be detected from a wider variety of images than in the first embodiment.
The preceding embodiments have shown three different image characteristics that can be used to adjust the dot-clock frequency. One characteristic is the maximum absolute difference between adjacent pixel values in a predetermined interval, as in the first three embodiments. Another characteristic is the entire histogram distribution of these absolute difference values, as in the fourth embodiment. Yet another characteristic is a ratio derived from the histogram, as in the fifth embodiment.
These embodiments have also shown three different image characteristics that can be used to adjust the dot-clock phase. One characteristic is the maximum absolute difference between adjacent pixel values in a predetermined interval, as in the first embodiment. Another characteristic is the absolute difference between the values of a predetermined pair of adjacent pixels, as in the second embodiment. Yet another characteristic is the absolute difference between the values of a pair of pixels selected as having the maximum absolute difference at a certain dot-clock phase.
The above embodiments have illustrated five combinations of the frequency-adjustment characteristic and the phase-adjustment characteristic, but the invention is not limited to these particular combinations. Any combination can be used.
The invented method and apparatus enable the dot-clock frequency and phase to be adjusted accurately, regardless of whether or not the input image signal has a standard format, and regardless of whether or not the image fills the entire screen. In particular, if a histogram distribution or ratio characteristic is used for adjusting the dot-clock frequency, and the difference between a selected pair of pixels is used for adjusting the dot-clock phase, the dot-clock adjustments can be completed successfully with a wide variety of image signals and image content.
The embodime described above make no provision for halting the adjustment process if a correct dot-clock frequency cannot be found. To ensure that the adjustment ends within a reasonable time, it may be preferable to set an upper limit on the number of different dot-clock frequencies that are tried, and display an error message if no correct dot-clock frequency is found within the limit number of trials. An appropriate error message is, for example, a message advising the user to select a different image signal, by selecting a different signal source or channel, after which the automatic adjustment process can be repeated. Alternatively, the message may advise the user to adjust the dot-clock frequency manually, if the apparatus is equipped for manual adjustment.
The preceding embodiments can also be modified by measuring the algebraic difference between adjacent pixel values, instead of the absolute difference. Substantially the same results are obtained, without the need for absolute-value calculations, but when the dot-clock phase is adjusted, the controller 6 may have to select the phase that minimizes the detected difference characteristic, instead of the phase that maximizes the difference. The controller 6 is preferably equipped to decide from the shape of the characteristic curve whether to select the phase that gives the minimum or maximum characteristic value.
Similarly, the maximum value detector 12 in the image-characteristic detector 5 may have to select a maximally negative value; that is, a minimum value. In other words, the maximum value detector 12 selects an extremum value, which may be either positive or negative.
When a characteristic curve such as the one in
In determining the difference between two histogram distributions in the fourth embodiment, the controller 6 can consider the difference between the maximum absolute difference values detected by the absolute-difference calculator 11 in each histogram. In this case, the histogram distribution characteristic includes the maximum absolute difference characteristic used in the first three embodiments. This modification of the fourth embodiment enhances the ability of the controller 6 to recognize the correct dot-clock frequency.
The invention is not limited to the characteristics described above. Various other characteristics, such as the mean absolute difference between adjacent pixels, can be used to adjust the dot-clock frequency or phase.
Those skilled in the art will recognize that further variations are possible within the scope claimed below.
Number | Date | Country | Kind |
---|---|---|---|
11-349718 | Dec 1999 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4998169 | Yoshioka | Mar 1991 | A |
5402337 | Nishide | Mar 1995 | A |
5805149 | Yuki et al. | Sep 1998 | A |
5940136 | Abe et al. | Aug 1999 | A |
6002449 | Tsyrganovich | Dec 1999 | A |
6226045 | Vidovich | May 2001 | B1 |
6246803 | Gauch | Jun 2001 | B1 |
6256003 | Tsuchiya et al. | Jul 2001 | B1 |
6271850 | Kida et al. | Aug 2001 | B1 |
6304296 | Yoneno | Oct 2001 | B1 |
6450647 | Takeuchi | Sep 2002 | B1 |
6493031 | Washizawa | Dec 2002 | B1 |
6539103 | Panin et al. | Mar 2003 | B1 |
Number | Date | Country |
---|---|---|
A11175033 | Jul 1999 | JP |
A11177847 | Jul 1999 | JP |