Systems and methods for display object edge detection and pixel data interpolation in video processing systems

Information

  • Patent Grant
  • 7414671
  • Patent Number
    7,414,671
  • Date Filed
    Thursday, June 30, 2005
    19 years ago
  • Date Issued
    Tuesday, August 19, 2008
    16 years ago
Abstract
A method interpolating pixel values includes calculating a difference value between pixel values corresponding to a first display pixel on a first display line and a second display pixel on a second display line, the first and second display pixels defining a possible edge angle of an object on a display. Another difference value is calculated between pixel values corresponding to a third display pixel of the first display line and a fourth display pixel of the second display line, the third and fourth display pixels defining a second angle on the display. A determination is made as to whether the difference value is less than or equal to the another difference value, and when the difference value is less than the another difference value, interpolation is performed between a pixel value corresponding to a selected display pixel on the first display line and another pixel value corresponding to a selected display pixel on the second display line to generate a pixel value corresponding to a display pixel on a third display line.
Description
CROSS REFERENCE TO RELATED APPLICATIONS

The following co-pending and co-assigned applications contain related information and are hereby incorporated by reference:


Ser. No. 11/167,756 by Pillay, Bounds and Gallagher entitled CIRCUITS AND METHODS FOR DETECTING 2:2 ENCODED VIDEO AND SYSTEMS UTILIZING THE SAME, filed Jun. 27, 2005;


Ser. No. 11/167,877 by Pillay, Bounds and Gallagher entitled CIRCUITS AND METHODS FOR DEINTERLACING VIDEO DISPLAY DATA AND SYSTEMS USING THE SAME, filed Jun. 27, 2005; and


Ser. No. 11/167,682 by Pillay, Bounds and Gallagher entitled SYSTEMS AND METHODS FOR DETECTING A CHANGE IN A SEQUENCE OF INTERLACED DATA FIELDS GENERATED FROM A PROGRESSIVE SCAN SOURCE, filed Jun. 27, 2005.


FIELD OF INVENTION

The present invention relates in general to video processing techniques, and in particular, to systems and methods for display object edge detection and pixel data interpolation in video processing systems.


BACKGROUND OF INVENTION

Two primary video format standards are utilized worldwide to record, transmit, and display composite video data, namely, the National Television Systems Committee (NTSC) and the Phase Alternating Line (PAL) standards. Both the NTSC and PAL standards define interlaced video systems in which one frame of display pixels is partitioned into alternating interlaced fields, with each interlaced field updated at twice the update rate of the frame. Additionally, many digital versatile disk (DVD) players, DVD player-recorders, and similar video recording and playback systems, output data in an interlaced format, depending on the format utilized during recording.


On the other hand, many state of the art display systems, such as high definition television (HDTV) sets, generate displays using a progressive scan format. In the progressive scan format, video data are transmitted and displayed in frames, which are not partitioned into fields. In other words, each display frame is generated by sequentially scanning through the lines of each frame at the original interlaced field update rate.


Hence, in order to interface an interlaced video source, such as an interlaced-output DVD player, with a progressive-scan display system, such as a HDTV set, deinterlacing must be performed. Several deinterlacing techniques exist for converting interlaced video into progressive scan video; however, each has significant drawbacks. For example, in the weaving technique, the lines of the current field are merged with the lines of the previous field to weave a full frame. The resulting frames are generated at the full update rate. Weaving, however, often creates feathering, which is similar to ghosting-like un-sharpness of moving display objects. In the bob technique, each field is converted to a full frame by interpolating between the available lines of that same field to generate the missing pixel lines. The interpolated frames are then displayed at the field update rate. The bob technique, however, often misses information representing high frequency detail. Motion compensated deinterlacing systems are also available which compensate for un-sharpness due to motion, but these systems are normally difficult and expensive to implement and are therefore mostly limited to high-end applications.


Given increasing popularity of progressive scan display systems, as well as the need to maintain compatibility with systems generating interlaced display data, new deinterlacing techniques are required. These techniques should minimize the generation of display artifacts, such as feathering, while at the same time being easier and less expensive to implement than those existing techniques. Additionally, such techniques should minimize the introduction of errors which often occur during the interpolation of pixel data.


SUMMARY OF INVENTION

The principles of the present invention are embodied in directional interpolation systems and methods, suitable, for example, for utilization in video deinterlacing systems. According to one representative embodiment, a method is disclosed for interpolating pixel values, which includes calculating a difference value between pixel values corresponding to a first display pixel on a first display line and a second display pixel on a second display line, the first and second display pixels defining a possible edge angle of an object on a display. Another difference value is calculated between pixel values corresponding to a third display pixel of the first display line and a fourth display pixel of the second display line, the third and fourth display pixels defining a second angle on the display. A determination is made as to whether the difference value is less than or equal to the another difference value, and when the difference value is less than the another difference value, interpolation is performed between a pixel value corresponding to a selected display pixel on the first display line and another pixel value corresponding to a selected display pixel on the second display line to generate a pixel value corresponding to a display pixel on a third display line.


Embodiments of the present principles advantageously support the efficient generation of frames of progressive scan video data from fields of interlaced video data with the creation of a minimal number of artifacts. In particular, the directional interpolation techniques of the present invention minimize display artifacts which result when pixel data corresponding to lines and edges of display objects are being interpolated.





BRIEF DESCRIPTION OF DRAWINGS

For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:



FIG. 1 is a high level block diagram of a representative audio-video system suitable for demonstrating the principles of the present invention;



FIG. 2 is a flow chart of an exemplary deinterlacing procedure embodying the principles of the present invention;



FIGS. 3A and 3B are conceptual diagrams of respective small sections of deinterlaced and progressive scan displays suitable for describing the exemplary nomenclature utilized in the flow chart of FIG. 2.



FIG. 4 is a flow chart illustrating a representative display object edge detection and video pixel data interpolation procedure embodying the principles of the present invention;



FIGS. 5A-5H are conceptual diagrams each showing a selected number of display pixels and exemplary relationships between pairs of display pixels suitable for testing for possible display object edges having various angles on a display screen.





DETAILED DESCRIPTION OF THE INVENTION

The principles of the present invention and their advantages are best understood by referring to the illustrated embodiment depicted in FIGS. 1-5 of the drawings, in which like numbers designate like parts.



FIG. 1 is a diagram of an exemplary analog to digital video decoder 100 suitable for describing the principles of the present invention. In the illustrated embodiment, video encoder converts a composite analog video input signal, in the YC format, into digital video data in the YCrCb component video format, although the inventive principles are not necessarily limited thereto.


In video encoder 100, the composite analog input video is converted into composite digital video in the YC format by analog to digital converters (ADCs) 101. The digitized YC video data are then passed through automatic gain control (AGC) and filters block 102. A sync detector 103 detects the vertical synchronization (VSYNC) signal, which controls the timing of the playback of each display field, and the horizontal synchronization signal (HSYNC), which controls the timing of the playback of each display line.


Y/C separator block 104 next separates the digital Y and C components of the digitized composite video data stream. The C component is demodulated into U and V color components by color subcarrier recovery block 105 and chroma demodulation block 106, described in further detail below. The Y, U, and V components are passed directly to video processor 107 for further processing to generate a YCrCb digital component video signal.


In the illustrated embodiment of audio-video recording and playback system 100, interlaced video to progressive scan video conversion (deinterlacing) is performed within video processor 107. In alternate embodiments, deinterlacing may be performed in a dedicated post-processor, which may be located within audio-video recording and playback system 100 or within an associated display system, such as a high definition television (HDTV).



FIG. 2 is a flow chart illustrating a representative method 200 for generating a sequence of frames of progressive scan video data from a sequence of fields of interlaced video data. For discussion purposes, FIGS. 3A and 3B are respectively conceptual diagrams of small sections of interlaced and progressive scan displays.


In the example shown in FIGS. 2, and 3A-3B, the current interlaced field is field FIN, in which N is an integer and may be odd or even. In particular, as shown in FIG. 3A, the current line of current field FIN is line Y, wherein Y is also an integer, and the spatially following line of current field FIN is line Y+2. The temporally following interlaced field is field FIN+1 and provides vertically adjacent line Y+1 when fields FIN and FIN+1 are interlaced in a typical interlaced display system. Representative vertically aligned interlaced pixel are pixels PIXY and PIXy+2 of the current field and pixel PIXY+1 of the temporally following field FIN+1, in which X is an integer representing the pixel position along lines Y, Y+1, and Y+2. Display pixel positions PIXY and PIXY+2 of the current field and pixel position PIXY+1 are represented by corresponding pixel values PIXY, PIXY+2 and PIXY+1, including, for example luminance and chrominance values.


As shown in FIG. 3B, each progressive scan frame is designated FPN, in which N is an integer. In the progressive scan frame FPN, representative vertically adjacent pixels of three lines Y, Y+1, and Y+2, are designated PPY and PPY+1, and PPY+2. Pixel positions PPXY and PPXY+1, and PPXY+2 are represented by corresponding pixel values PPXY and PPXY+1, and PPXY+2, including, for example, luminance and chrominance values.


For discussion purposes, procedure 200 will be described by assuming interlaced field FIN is the reference field such that pixel lines Y and Y+2 of current interlaced field FIN provide lines Y and Y+2 of progressive scan frame FPN. In this example, line Y+1, of progressive scan frame FPN, and in particular pixel PPXY+1, is being generated during the current iteration of procedure 200.


At block 201a, the reference interlaced field is set as field FIN, the temporally preceding interlaced field becomes field FIN−1, and the temporally following interlaced field becomes field FIN+1. Thus, for example, if reference field FIN has even parity (i.e. is composed of even numbered pixel lines), then preceding field FIN−1 and following field FIN+1 both have odd parity (i.e. are composed of odd numbered pixel lines). On the other hand, if reference field FIN has odd parity, then preceding field FIN−1 and following field FIN+1 are both of even parity.


A motion map MMN is generated at block 202 by comparing the chrominance and luminance data of each pixel value of preceding field FIN−1 against both a threshold value and the luminance and chrominance data of the corresponding pixel value of following field FIN+1. In the illustrated embodiment, for a given one of the luminance and chrominance values of each pixel value, motion at the corresponding pixel position is detected when the absolute value of the difference between the corresponding pixel values in fields FIN−1 and FIN+1 is greater than the selected threshold value. The resulting motion map MMN is preferably a one (1) bit per pixel map, with the bit mapping to a given pixel position set to a logic one (1) to indicate a change in luminance, chrominance, or both luminance and chrominance of the corresponding pixel value between fields FIN−1 and FIN+1 (i.e. motion detected) or to a logic zero (0) to indicate no change in either luminance or chrominance of that pixel value between fields FIN−1 and FIN+1 (i.e. no motion detected). As discussed further below, motion maps generated at block 202 have lines of bits of either an odd or even parity, depending on the parity of the lines of the preceding and following fields being compared by parity check. In particular, if interlaced fields FIN−1 and FIN+1 are odd, the lines of motion MMN map represent odd pixel lines, and if interlaced fields FIN−1 and FIN+1 are even, the lines of motion map MMN represent even pixel lines.


For the generation of exemplary pixel value PPXY+1 corresponding to display pixel position PPXY+1, the corresponding bit in motion map MMN is checked at block 203 for motion between pixel values PIXY+1 corresponding to display pixel position PIXY+1 of preceding field FIN−1 and following field FIN+1. In other words, a check for motion is made between the pixel value for the same pixel position along the corresponding line of the temporally prior field of the same parity as the bit being generated and the pixel value for the same pixel position along the corresponding line of the next temporal field of the same parity as the bit being generated.


If motion is detected at decision block 204, then at block 205, pixel value PPXY+1 of progressive scan frame FPN is generated by interpolating between pixel values of the current field, for example, between pixel values PIXY and PIXY+2 corresponding to vertically aligned pixel positions PIXY and PIXY+2 of reference field FIN. In other words, in the present example, the current pixel value is generated by interpolating from the vertically adjacent pixel values of the line above and the line below the line being generated in the progressive scan frame. In alternative embodiments, other pixel values in the neighborhood of pixel value PPXY+1 may be utilized in the interpolation operation. After interpolation at block 205, the pixel index X is incremented, and if the end of the current line has been reached, the line index Y is incremented, and procedure 200 loops-back to block 203 to initiate the generation of the next pixel value corresponding to the next pixel position in progressive scan frame FPN.


On the other hand, if no motion is detected at decision block 204, then at block 206, pixel value PPXY+1 of progressive scan frame FPN is generated by weaving in the corresponding pixel value PIXY+1 of temporally following field FIN+1. In other words, the current pixel value being generated is taken from the corresponding pixel value and line of the next interlaced field of the same parity as the progressive scan line being generated.


After weaving is performed at block 206, a check is made at block 207 for feathering at pixel position PPXY+1 of progressive scan frame FPN. Feathering is checked by comparing the characteristics of corresponding pixel value PPXY+1 with the characteristics of the pixel values PPXY and PPXY+2 corresponding to vertically adjacent pixel positions PPXY and PPXY+2 of progressive scan frame FPN. Specifically, the luminance and chrominance of pixel value PPXY+1 are compared against the luminance and chrominance of pixel values PPXY and PPXY+2 after weaving. If the luminance, chrominance, or both luminance and chrominance of weaved pixel value PPXY+1 deviates by a threshold amount from that of both pixel values PPXY and PPXY+2, a check for feathering is required because the single motion map parity check at block 203 can miss motion which occurs during the time between the generation of preceding field FIN−1 and following field FIN+1. On the other hand, feathering could be a representation of vertical spatial high frequency. Advantageously, one of the principles of the present invention allows for an accurate determination if any detected feathering represents actual motion or vertical spatial high frequency.


At decision block 208, feathering is detected when the magnitude of any change, in at least one of the luminance or chrominance values, between pixel value PPXY+1 and both pixel values PPXY and PPXY+2 exceeds a selected threshold, and the direction of change between pixel value PPXY and pixel value PPXY+1 and the direction of change between pixel value PPXY+1 and pixel value PPXY+2 is the same (i.e. the sign of the two arithmetic differences is the same). Otherwise, if any of these three conditions is not met, an absence of motion is detected at pixel position PPXY+1.


If no feathering is detected, the weave performed at block 206 is accepted at block 209, and procedure 200 moves to the generation of the next pixel value corresponding to the next pixel position in progressive scan frame FPN. In other words, the weaved pixel value PPXY+1 is utilized in the corresponding pixel position in progressive scan frame FPN. In contrast, if feathering is detected at decision block 208, then historical value motion detection must be performed to determine if the feathering is the result of actual motion or the result of vertical spatial high frequency. Vertical spatial high frequency occurs when pixel values rapidly change along vertical lines because of sharp spatial changes in the display objects being generated, such as at the boundaries checker-board patterns or with fine resolution pixel patterns, such as fine display horizontal object lines.


To detect historical motion at pixel position PPXY+1, motion maps MMN−Z−1 to MMN−1, which were created at block 203 during the generation of Z number of temporally preceding progressive frames FIN−Z−1 to FIN−1, are combined into a single motion map (current motion map MMN is not included) in which Z is an integer. Specifically, a determination is made at decision block 210 as to the parity of the line of pixel position PPXY+1 of the current pixel value PPXY+1 being generated. If the line including pixel position PPXY+1 has odd parity, then the odd map lines of even-line motion maps MMN−Z−1 to MMN−1 are generated by interpolation of the existing even motion map lines at block 211. If the line including pixel position PPXY+1 has even parity, then the even map lines of odd-line motion maps MMN−Z−1 to MMN−1 are generated by interpolation, for example logical—OR vertical interpolation, of the existing odd motion map lines at block 212.


The interpolation operations performed at blocks 211 and 212 ensure that all Z number of motion maps MMN−Z−1 to MMN−1 have map lines of the same parity and therefore can be appropriately combined at block 213. Combination of memory maps MMN−Z−1 to MMN−1, is preferably accomplished by performing a logical-OR operation on a mapping-bit by mapping-bit basis. Consequently, at decision block 214, a determination can be made as to whether, over a history of the generation of Z number of previous progressive scan frames, motion has occurred at pixel position PPXY+1.


If historical motion has not occurred at decision block 214, then at block 215, pixel value PPXY+1 corresponding to pixel position PPXY+1 is considered static in value (i.e. represents vertical spatial high frequency) and the weaving performed at block 206 is accepted for the generation of progressive scan frame FPN (i.e. weaved pixel value PPXY+1 is utilized in progressive scan frame FPN at pixel position PPXY+1). If, instead, motion is detected at decision block 214, then at block 216, pixel value PPXY+1 for pixel position PPXY+1 of progressive scan frame FPN is generated by interpolating between pixel values of current field FIN, such as pixel values PIXY and PIXY+2 corresponding to vertically aligned pixel positions PIXY and PIXY+2 of reference field FIN. After completion of the operations at blocks 215 and 216, procedure 200 returns to block 203 to generate the next progressive scan pixel, after incrementation of pixel index X and/or line index Y


Advantageously, the frames of progressive scan video data are generated from fields of interlaced video with minimal artifacts, such as feathering, while at the same time; the probability of falsely creating artifacts due to spatial high frequency is minimized.



FIG. 400 is a flow chart illustrating display object edge detection and directional interpolation procedure 400 embodying the principles of the present invention. Directional interpolation procedure 400 is particularly suitable for the pixel data interpolation operations performed in blocks 205 and 216 of interlacing procedure 200 discussed above, although the present inventive principles are not limited thereto.


Generally, according to the principles of the present invention, a series of tests are performed to determine whether a display object edge passes through, or nearly through, a display pixel whose associated pixel value is being generated by interpolation. In particular, for a selected group of display pixels, a set of tests are performed for a set of predetermined angles between display pixels in the group, with each predetermined angle approximating a possible angle of display object edge. The purpose of the set tests is to determine whether a given set of display pixels represent an angle having a minimum variation along the display object edge angle and a maximum variation perpendicular or nearly perpendicular to the display object edge angle. From the set of display pixels that best meet these constraints, the associated pixel values of selected display pixels in the set are utilized for the interpolation operation. This procedure is conceptually illustrated in FIGS. 5A-5H for representative test angles of 45, 135, 153, 27, 18, 162 and 90 degree test angles; in alternate embodiments, a different set of test angles may be used. As shown in FIGS. 5G and 5H, two tests are performed to test for a vertical display object edge, since the corresponding perpendicular direction is the horizontal.


In the examples shown in FIGS. 5A-5H, a group of eighteen (18) pixels, nine (9) pixels from line Y of the progressive scan frame and nine (9) pixels from line Y+2 of the progressive scan frame, are selected in the neighborhood of display pixel PPXY+1 whose pixel value is being generated by interpolation. In alternate embodiments, the number of neighboring display pixels selected for edge detecting may vary. For each angle being tested, four subgroups A-D are selected from the group of neighboring pixels. Subgroup A from line Y and subgroup B from line Y+2 are selected to test for a minimum in variation in pixel values along the angle being tested. Each pixel in subgroup A corresponds to a pixel in subgroup B, with each pair of corresponding pixels disposed relative to each other at the angle being tested. For example, in the 45 degree example shown in FIG. 5A, display pixels 4, 5 and 6 of subgroup A are disposed at an angle of 45 degrees from vertical with respect to pixels 2, 3 and 4 of subgroup B, as shown by the solid lines. Two additional subgroups, subgroups C and D are selected for testing for the maximum variation in pixel values perpendicular or nearly perpendicular to the angle being tested. For the 45 degree test shown in FIG. 5A, display pixels 2, 3 and 4 of subgroup C are disposed at an angle of 135 degrees from vertical with respect to display pixels 4, 5 and 6 of subgroup D.


Mathematically, to determine whether a selected pair of subgroups A and B of display pixels being tested show a minimum variation along the angle being tested and the maximum variation perpendicular or nearly perpendicular to the angle being tested, two constraints must be satisfied. First, the absolute maximum difference in pixel values between corresponding display pixels in subgroups A and B must be less than or equal to the absolute minimum difference in pixel values between corresponding pixels in subgroups C and D. Second, the differences in pixel values between all corresponding pairs of display pixels in subgroups A and B must all be of the same sign and the differences in pixel values between all corresponding pairs of pixels in subgroups C and D must all have the same sign. (The difference values taken between corresponding pixels in subgroups A and B may differ in sign from the difference in pixel values taken for the display pixels of subgroups C and D.) In other words, for a given pair of subgroups A and B or C and D, the direction of variation in pixel values between pairs of corresponding display pixels within the subgroup must consistently be in the same direction.


Once all the mathematical constraints are satisfied, for a given test angle, a quality value V is generated, where V is the difference in value between the minimum absolute difference in pixel values between any pair of pixels in subgroups C and D and the maximum absolute difference in pixel values between any pair of pixels in subgroups A and B. If neither of the constraints is met, then the quality value is set to O. In the preferred embodiment, this test is performed for each prospective angle, with the quality value V forced to zero (0) for those angles that do not meet the constraints discussed above. The corresponding group of pixels with the highest quality value V is selected for performing the interpolation operation.


In the preferred embodiment, once a group of pixels with the highest quality value V is selected, the pixel values for the display pixels of groups A and B which align with the pixel being generated are utilized for the interpolation. For example, in the 45 degree example of FIG. 5A, the pixel value corresponding to display pixel 5 of subgroup A and the pixel value corresponding to display pixel 3 of subgroup B are utilized for the interpolation.


After the interpolation is performed, a test is made to determine whether the interpolated pixel value for the displaying pixel being generated approximates the median pixel value for a neighboring set of pixels in the selected group. In the preferred embodiment of the present inventive principles, a test is performed to determine whether the pixel values of the three closest neighboring pixels in line Y are either all greater than or equal in pixel value or all less than or equal to the pixel value which was generated by interpolation. Additionally, a determination is made as to whether the pixel value for the three closest neighboring pixels in line Y+2 are all greater than or equal to or all less than and equal to the pixel value which was generated by interpolation. Finally, if the three closest neighboring display pixels in line Y have pixel values which are all greater than or equal to the pixel value corresponding to the generated pixel, then the three closest neighboring pixels of line Y+2 must have pixel values which are all less than or equal to the generated pixel. On the other hand, if the three closest neighboring pixels in line Y have pixel values which are all less than or equal to the generated pixel, then the three closest neighboring pixels in line Y+2 must have pixel values which are all greater than or equal to the generated pixel. If any of these constraints is not satisfied, then the interpolation operation is not accepted and a default interpolation operation, discussed below, is performed. For example, for the 45 degree case of FIG. 5A, if the pixel values for display pixels 3, 4 and 5 of line Y are all greater than or equal to the pixel value generated by interpolation for pixel PPXY+1, then the pixel values associated with pixels 3, 4 and 5 of line Y+2 must all be less than or less than or equal to the value of pixel PPXY+1 generated through interpolation, and vice versa.


If, after testing all possible sets of predetermined angles, no set of display pixels is found to have a non-zero quality value V, then a default interpolation utilizing the vertically adjacent display pixels is performed to generate the pixel of interest. Additionally, as mentioned above, if the pixel value generated by interpolation does not approximate the median pixel value of a group of closest neighboring display pixels, then a default interpolation operation utilizing the vertically adjacent display pixels is performed to generate the required pixel value. For the example of pixel PPXY+1 shown in FIGS. 5A and 5B, a vertical interpolation is performed between pixel 4 of line Y and pixel 4 of line Y+2 as the default interpolation operation in the illustrated embodiment.


The particular exemplary directional interpolation procedure 400 shown in FIG. 4 begins at step 401. A group of display pixels from display lines Y and Y+2 of interlaced reference field FIN in the neighborhood of pixel display PPXY+1 being generated for progressive frame FPN line Y+1 is selected. At block 403, a first subgroup A of display pixels of the group is selected from display line Y and a second subgroup B of display pixels of the group are selected from display line Y+2. Next, at block 404, pairs of pixels are selected each including a display pixel from subgroup A and a display pixel from subgroup B such that an angle between the display pixels of each pair approximates a test angle for testing for a possible edge of a display object passing through display pixel PPXY+1.


For each pair of display pixels in subgroup A and subgroup B, a difference in corresponding pixel values is calculated by subtracting the given pixel value of subgroup B from the corresponding pixel value of subgroup B, to generate a first set of difference values at block 405. If, at block 405, all the difference values calculated at block 405 are of the same mathematical sign, then the test of the current angle continues. Otherwise, procedure 400 jumps to block 414, and a quality value V of zero (0) is assigned to the current angle. Then, at block 406, the largest absolute difference value D1 is selected from the set of difference values calculated at block 407.


At block 408, a third subgroup C of display pixels of the group is selected from display line Y and a fourth subgroup D of display pixels of the group is selected from display line Y+2. From the third and fourth subgroups, pairs of pixels are selected at block 409, with each pair including a display pixel from subgroup C and a display pixel from subgroup D such that an angle between the display pixels of each pair is approximately orthogonal to the test angle. For each pair of display pixels of subgroups C and D, a difference in corresponding pixel value is determined at block 410 by subtracting the given pixel value of subgroup D from the corresponding pixel value of subgroup C, to generate a second set of difference values. When the difference values generated at block 410 are of the same mathematical sign at block 411, then a smallest absolute difference value D2 is determined from the second set of difference values at block 412; otherwise procedure 400 jumps to block 413 and a quality value V of zero is assigned to the current angle being tested.


At decision block 413, a test is made to determine whether the largest absolute difference value D1 calculated for subgroups A and B is less than or equal to the smallest absolute difference value D2 calculated for subgroups D and C. If difference value D1 is not less than or equal to difference value D2, then a quality value V of zero is assigned to the current angle being tested at block 414. Otherwise, at block 415, the quality value V is calculated as the absolute difference between difference value D2 and difference value D1.


At block 416, interpolation is performed between the pixel values corresponding to the display pixel of subgroup A and the display pixel of subgroup B which are aligned with display pixel PPXY+1 in progressive frame FPN. At decision block 417, a test is performed to determine whether the pixel value PPXY+1 generated by interpolation approximates the median of pixel values of a group of closest neighboring display pixels. As discussed above, the test at block 417 in the illustrated embodiment is performed by first determining whether the pixel values corresponding to the three closest display pixels to display pixel PPXY+1 on line Y are all greater than or equal to the interpolated pixel value PPXY+1 and the pixel values corresponding to the three closest display pixels to the display pixel PPXY+1 on line Y+2 are all less than or equal to the interpolated pixel value PPXY+1, or the pixel values corresponding to the three closest display pixels to display pixel PPXY+1 on line Y are all less than or equal to the interpolated pixel value PPXY+1 and the pixel values corresponding to the three closest display pixels to the display pixel PPXY+1 on line Y+2 are all greater than or equal to the interpolated pixel value PPXY+1.


If the pixel value PPXY+1 generated by interpolation does not approximate the median of pixel values of a group of closest neighboring display pixels at block 417, then procedure 400 returns to block 414 and the quality value V is set to zero (0). Otherwise, at block 418 the quality value determined at either block 414 or block 415 is stored.


If, at decision block 419, the last of the predetermined set of test angles has not yet been tested, then procedure 400 loops back to block 402 for testing at the next test angle. Otherwise, at decision block 420, a determination is made as to whether at least one non-zero quality value V has been calculated for any of the predetermined set of test angles.


If no non-zero quality values V have been calculated and stored, then at block 421, vertical interpolation is used as a default condition. In the illustrated embodiment, vertical interpolation is performed between the pixel values PPXY and PPXY+2 corresponding to progressive frame display pixel PPXY of line Y and PPXY+2 of line Y+2, which are interpolated to generate a pixel value PPXY+1 corresponding to progressive frame display pixel PPXY+1. Otherwise, if at decision block 420, at least one non-zero quality value V has been calculated, then at block 422 the interpolated pixel value PPXY+1 corresponding to the highest quality value V is utilized to generate display pixel PPXY+1.


In alternate embodiments of procedure 400, a second technique may be implemented at block 420, when all quality values V are zero (0). Specifically, if the previous pixel value was calculated using a test angle associated with a non-zero quality value V, then that previous test value may be used for the current iteration of procedure 400, subject to a reduced set of constraints. In particular, only the constraints applied to subgroups A and B above for the possible edge angle are utilized. The constraints on subgroups C and D discussed above are not applied. The constraint that the pixel value being generated approximates the median pixel value of the closest neighboring display pixels may also be utilized. If these remaining constraints are met, then the test angle utilized to generate the previous pixel value may be used for interpolation of the current pixel value.


Advantageously, systems and methods according to the principles of the present invention allow for the efficient detection of display object edges and the interpolation of associated pixel values with minimal interpolation artifacts, even if the detected edges are not vertical.


Although the invention has been described with reference to specific embodiments, these descriptions are not meant to be construed in a limiting sense. Various modifications of the disclosed embodiments, as well as alternative embodiments of the invention, will become apparent to persons skilled in the art upon reference to the description of the invention. It should be appreciated by those skilled in the art that the conception and the specific embodiment disclosed might be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present invention. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims.


It is therefore contemplated that the claims will cover any such modifications or embodiments that fall within the true scope of the invention.

Claims
  • 1. A method of interpolating pixel values comprising: calculating a difference value between pixel values corresponding to a first display pixel on a first display line and a second display pixel on a second display line, the first and second display pixels defining a possible edge angle of an object on a display;calculating another difference value between pixel values corresponding to a third display pixel of the first display line and a fourth display pixel of the second display line, the third and fourth display pixels defining a second angle on the display;determining whether the difference value is less than or equal to the another difference value; andwhen the difference value is less than the another difference value, interpolating between a pixel value corresponding to a selected display pixel on the first display line and another pixel value corresponding to a selected display pixel on the second display line to generate a pixel value corresponding to a display pixel on a third display line.
  • 2. The method of claim 1, wherein the difference value is a selected one of a plurality of difference values calculated for a plurality of pixel values corresponding to a plurality of display pixels on the first display line and a plurality of pixel values corresponding to a plurality of display pixels on the second display line, corresponding ones of the plurality of display pixels on the first and second lines disposed relative to one another at the possible edge angle.
  • 3. The method of claim 2, wherein the difference value is a largest of the plurality of difference values.
  • 4. The method of claim 1, wherein the another difference value is a selected one of a plurality of difference values determined for a plurality of pixel values corresponding to a plurality of display pixels on the first display line and a plurality of pixel values corresponding to a plurality of display pixels on the second display line, corresponding ones of the plurality of display pixels on the first and second lines disposed relative to one another at the another angle.
  • 5. The method of claim 4, wherein the another difference value is a smallest of the plurality of difference values.
  • 6. The method of claim 1, wherein interpolating comprises interpolating pixel values corresponding to selected display pixels in the first and second lines are aligned with the display pixel of the third display line.
  • 7. The method of claim 1, wherein the first display line is immediately above and the second display line is immediately below the third display line of a display frame.
  • 8. The method of claim 1, further comprising: after interpolating, determining whether the generated pixel value approximates a median pixel value of a set of pixel values corresponding to a set of neighboring display pixels on the first display line and a set of neighboring display pixels on the second display line.
  • 9. The method of claim 8, wherein determining whether the generated pixel value approximates a median pixel value of a set of pixel values comprises: determining whether the generated pixel value is greater than or equal to or less than or equal to each pixel value corresponding to each display pixel in the set of neighboring display pixels on the first display line; anddetermining whether the generated pixel value is greater than or equal to or less than or equal to each pixel value corresponding to each display pixel in the set of neighboring display pixels on the second display line.
  • 10. A method of generating a pixel value, comprising: selecting a group of display pixels from first and second display lines of a first field in a neighborhood of a selected display pixel of a third line of a second field;calculating a first set of difference values between pixel values corresponding to pairs of display pixels, each pair including a first pixel of a first subgroup of display pixels of the first display line and a second pixel of a second subgroup of pixels of the second display line, wherein display pixels of the first subgroup are disposed at a selected possible display object edge angle with respects to display pixels of the second subgroup;calculating a second set of difference values between pixel values corresponding to pairs of display pixels, each pair including a first pixel of a third subgroup of display pixels of the first display line and a second pixel of a fourth subgroup of pixels of the second display line, wherein display pixels of the third subgroup are disposed at an another angle with respects to display pixels of the fourth subgroup;determining whether a largest difference value of the first set of difference values is smaller than a smallest difference value of the second set of difference values; andwhen the largest difference value of the first set of difference values is smaller than the smallest difference value of the second set of difference values, generating a pixel value corresponding to the selected display pixel of the third display line by interpolating between pixel values corresponding to a selected display pixel of the first subgroup and a selected display pixel of the second subgroup.
  • 11. The method of claim 10, wherein the another angle is approximately orthogonal to the edge angle.
  • 12. The method of claim 10, wherein generating a pixel value comprises interpolating between pixel values corresponding to a selected display pixel of the first subgroup and a selected display pixel of the second subgroup are aligned with the selected display pixel of the third display line.
  • 13. The method of claim 10, wherein a number of display pixels in the first and second subgroups differs from a number of display pixels in the third and fourth subgroups.
  • 14. The method of claim 10, further comprising when the largest difference value of the first set of difference values is greater than the smallest difference value of the second set of difference values: calculating a third set of difference values between pixel values corresponding to pairs of display pixels, each pair including a first display pixel of a fifth subgroup of display pixels of the first display line and a second pixel of a sixth subgroup of display pixels of the second display line, wherein display pixels of the fifth subgroup are disposed at another edge angle with respect to display pixels of the sixth subgroup and the another possible display object edge angle differs from the possible display object edge angle;calculating a fourth set of difference values between pixel values corresponding to pairs of display pixels, each pair including a first display pixel of a seventh subgroup of display pixels of the first display line and a second display pixel of an eighth subgroup of pixels of the second display line, and wherein display pixels of the seventh subgroup are disposed at further angle with respect to display pixels of the eighth subgroup, wherein the further angle differs from the another angle;determining whether a largest difference value of the third set of difference values is smaller than a smallest difference value of the fourth set of difference values; andwhen the largest difference value of the third set of difference values is smaller than the smallest difference value of the fourth set of difference values, generating a pixel value corresponding to the selected display pixel of the third display line by interpolating between pixel values corresponding to a selected display pixel of the fifth subgroup and a selected display pixel of the sixth subgroup.
  • 15. The method of claim 14, further comprising: after interpolating, determining whether the generated pixel value approximates a median pixel value of a set of pixel values corresponding to a set of neighboring display pixels on the first display line and a set of display pixels on the second display line.
  • 16. The method of claim 10, wherein determining whether the generated pixel value approximates a median pixel value of a set of pixel values comprises: determining whether the generated pixel value is greater than or equal to or less than or equal to each pixel value corresponding to each display pixel in the set of neighboring display pixels on the first display line; anddetermining whether the generated pixel value is greater than or equal to or less than or equal to each pixel value corresponding to each display pixel in the set of neighboring display pixels on the second display line.
  • 17. A video data processing system operable to: calculate a difference value between pixel values corresponding to a first display pixel on a first display line and a second display pixel on a second display line, the first and second display pixels defining a possible edge angle of an object on a display;calculate another difference value between pixel values corresponding to a third display pixel of the first display line and a fourth display pixel of the second display line, the third and fourth display pixels defining a second angle on the display;determine whether the difference value is less than or equal to the another difference value; andwhen the difference value is less than the another difference value, interpolate between a pixel value corresponding to a selected display pixel on the first display line and another pixel value corresponding to a selected display pixel on the second display line to generate a pixel value corresponding to a display pixel on a third display line.
  • 18. The video data processing system of claim 17, further operable to: select the difference value as a largest of a plurality of difference values calculated for a plurality of pixel values corresponding to a plurality of display pixels on the first display line and a plurality of pixel values corresponding to a plurality of display pixels on the second display line, corresponding ones of the plurality of display pixels on the first and second lines disposed relative to one another at the possible edge angle.
  • 19. The video data processing system of claim 17, further operable to: select the another difference value as the smallest of a plurality of difference values determined for a plurality of pixel values corresponding to a plurality of display pixels on the first display line and a plurality of pixel values corresponding to a plurality of display pixels on the second display line, corresponding ones of the plurality of display pixels on the first and second lines disposed relative to one another at the another angle.
  • 20. The video data processing system of claim 17, operable to interpolate pixel values corresponding to selected display pixels in the first and second lines are aligned with the display pixel of the third display line.
US Referenced Citations (16)
Number Name Date Kind
5339109 Hong Aug 1994 A
5467439 Lee et al. Nov 1995 A
5519451 Clatanoff et al. May 1996 A
5532751 Lui Jul 1996 A
5602654 Patti et al. Feb 1997 A
5708474 Hong Jan 1998 A
5832143 Suga Nov 1998 A
6133957 Campbell Oct 2000 A
6295091 Huang Sep 2001 B1
6400762 Takeshima Jun 2002 B2
6577435 Bang et al. Jun 2003 B1
6614484 Lim et al. Sep 2003 B1
6757022 Wredenhagen Jun 2004 B2
6795123 Gotanda et al. Sep 2004 B2
7336316 Fazzini Feb 2008 B2
20040246546 Minami et al. Dec 2004 A1