Deinterlacing is an art that involves converting interlaced video fields into non-interlaced video frames. Deinterlacing is required because most modern televisions are inherently progressive and the video feed is broadcasted in interlaced form.
There are three common techniques to deinterlace an interlaced video feed. One of these techniques is known as vertical interpolation. Vertical interpolation involves averaging at least two scan lines to generate a new scan line. The technique is repeated for all scan lines and creates a full frame from a single video field. While vertical interpolation allows a progressive picture to be generated from one video field, half of the resolution of the video feed is lost.
Another deinterlacing technique is “weaving.” Weaving involves merging a video field containing odd scan lines with a subsequent field containing even scan lines. The two fields are combined to generate a single progressive frame. Weaving is beneficial because it preserves the full resolution of the video feed. However, if motion is present, weaving results in motion artifacts because the two fields are not temporally aligned.
A third technique is known as motion adaptive deinterlacing. Motion adaptive is a combination of the vertical interpolation technique and the weaving technique. Motion-adaptive techniques make a pixel-by-pixel determination as to whether motion is present in the local area of the pixel. If motion is detected, then vertical interpolation is used. If no motion is detected, the weaving technique is used. However, when new pixels are calculated from a single field, jagged edges on objects result. Often, the jagged edges are caused by aliasing in the single field since using only every other line does not provide a vertical sampling frequency that is high enough to meet the Nyquist rate. Hence, aliases are present in the single field which are caused by the low vertical sampling rate. These aliases result in unnatural looking, jagged object edges.
In order to reduce the aliasing artifacts, edge detection is used. Edge detection involves detecting the edge location in the image and calculating new pixel values based on known pixels aligned along the edge direction. Using the known pixel values along the detected edge to calculate the new pixel values reduces or eliminates the aliasing artifacts.
The foregoing examples of the related art and limitations related therewith are intended to be illustrative and not exclusive. Other limitations of the related art will become apparent to those of skill in the art upon a reading of the specification and a study of the drawings.
The following embodiments and aspects thereof are described and illustrated in conjunction with systems, tools, and methods that are meant to be exemplary and illustrative, not limiting in scope. In various embodiments, one or more of the above-described problems have been reduced or eliminated, while other embodiments are directed to other improvements.
A technique for deinterlacing an interlaced video stream involves detecting an edge and calculating an unknown pixel using known pixels along the edge. An example of a method according to the technique involves calculating a gradient of image intensity for a 2-dimensional image. An edge can be identified using the gradient calculations. An angle of the edge can also be identified using the gradient calculations. Once the edge and angle are unknown, a bin can be selected that encompasses the edge angle. The bin boundaries can be boundaries with directions that are aligned on known pixel locations. The bin boundaries can allow for the calculation of new pixel values aligned on the boundaries. The unknown pixel can be calculated as a blend of the calculated pixels which are aligned on the bin boundaries. Additionally, the distance from one of the bin boundaries to the edge angle can be calculated and the blending can be further based on the calculated distance.
In additional embodiments, vertical interpolation can be performed before calculating the gradient. Performing a vertical interpolation allows a gradient value to be calculated directly for each pixel location for which a new pixel value must be calculated. In additional embodiments, the vertically interpolated frame can be subjected to a lowpass filter prior to the gradient calculation to smooth the image. The lowpass filter can reduce the high frequencies that can reduce the reliability of the gradient calculations. The gradient calculations can include a horizontal gradient calculation and a vertical gradient calculation. The edge location can be identified using a gradient magnitude. The edge angle can be identified using an inverse-tangent of the horizontal and vertical gradient.
In certain embodiments, the detected edge can be verified using a dynamic range. The dynamic range can be determined by a minimum pixel value and a maximum pixel value. Further, noise can be removed using a median filter. In addition, the boundaries of the bin can be determined by an angle location of known pixel data.
In other embodiments, the pixel calculation can be validated using a confidence level indicator. The confidence level indicator can be determined by counting a number of angles present in the immediate area of the pixel, counting a number of angles that are similar to the detected edge, counting a number of angles that are different that the detected edge, counting a number of pixels with similar directions as the detected edge and counting a number of pixels with different directions as the detected edge. The results can be combined to generate a confidence level.
Another example of a method according to the technique involves calculating a pixel using edge detection. A pixel can also be calculated using vertical interpolation and weaving. A confidence level and motion value can be further calculated. The edge pixel calculation can be blended with the vertical interpolation calculation to generate a first output pixel calculation. The blending can be based on the confidence level. The first output pixel calculation can be blended with the weaving calculation to generate a second output pixel calculation. The blending can be based on the motion value.
In another embodiment, the technique involves determining whether a cadence has been identified. If a cadence has been identified, a result based on the cadence can be provided. If a cadence has not been identified, a result based on the second output pixel calculation can be provided.
An example of a system according to the technique includes a motion module, a weave calculation module, an edge direction module, a confidence level module, an edge pixel calculation module, a blend edge/vertical interpolation module, and a blend weave/edge/vertical interpolation module. The confidence level module can be coupled to the edge direction module and the edge pixel calculation module. The edge pixel calculation module can be further coupled to the edge direction module. The blend/edge vertical interpolation module can be coupled to the edge pixel calculation module, the vertical interpolation module and the confidence level module. The blend weave/edge/vertical interpolation module can be coupled to the motion module, the weave calculation module and the blend edge/vertical interpolation module. The system can provide a deinterlaced picture as an output.
In another embodiment, the system can further comprise a cadence detection module and an optimization module. The optimization module can be coupled to the cadence detection module and the blend weave/edge/vertical interpolation module. The output of the system can be an optimal deinterlaced picture.
The proposed method, system and device can offer, among other advantages, a deinterlaced picture. This can be accomplished in an efficient and robust manner compared to other deinterlacing techniques. Advantageously, the proposed system, method and device can deinterlace an interlaced video stream with high precision by detecting edges within the image. An unknown pixel is mapped to a bin that contains the detected edge angle and known pixel values from the bin boundaries are blended to calculate the unknown pixel. The technique produces a high quality deinterlaced picture from an interlaced video source because known pixels that are closest to the detected edge are used to calculate the unknown pixels. These and other advantages of the present invention will become apparent to those skilled in the art upon a reading of the following descriptions and a study of the several figures of the drawings.
Embodiments of the inventions are illustrated in the figures. However, the embodiments and figures are illustrative rather than limiting; they provide examples of the invention.
In the following description, several specific details are presented to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention can be practiced without one or more of the specific details, or in combination with other components, etc. In other instances, well-known implementations or operations are not shown or described in detail to avoid obscuring aspects of various embodiments, of the invention.
In the example of
In the example of
In the example of
In the example of
In the example of
In one embodiment, a first ratio formula can be calculated by dividing the distance of the unknown pixel to a known pixel along the high boundary by the total distance between known pixels. A second ratio formula can be calculated by dividing the distance of the unknown pixel data to a known pixel along the low boundary by the total distance between the known pixels. The first and second ratio formulas can be multiplied by their respective known pixels and the results combined to generate a new pixel value. In other embodiments, a first ratio formula can be calculated and subtracted from one to obtain a second ratio formula.
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
In the example of
If a cadence has not been identified (602—No), then at module 604, a result is provided that is based on a second output calculation. If a cadence has been identified (602—Yes), then at module 606 a result is provided that is based on the cadence. The cadence can be identified using any known and/or convenient technique, including, by way of example, the techniques provided in U.S. Provisional Patent Application No. 60/715,111 entitled “Source-Adaptive Video Deinterlacer” filed on Sep. 8, 2005 which is incorporated herein by reference. In certain embodiments, the determination of whether a cadence has been identified is performed on a frame by frame basis. However, in other embodiments, it can be possible to identify the cadence on a pixel by pixel basis.
The edge direction module 706 is coupled to the edge pixel calculation module 710 and the confidence level module 712. The vertical interpolation calculation module 708 is coupled to the blend edge and vertical interpolation based on confidence level module 714. The edge pixel calculation module 710 is coupled to the confidence level module 712 and the blend edge and vertical interpolation based on confidence level module 714. The confidence level module 712 is also coupled to the blend edge and vertical interpolation based on confidence level module 714. The blend edge and vertical interpolation based on confidence level module 714 is coupled to the blend weave and edge/vertical interpolation based on motion module 716.
In operation, the motion module 702 calculates a value based on the motion in an interlaced picture and provides that value to the blend weave and edge/vertical interpolation based on motion module 716. The weave calculation module 704 creates a first deinterlaced picture using a weaving technique. The first deinterlaced picture from the weave calculation module 704 is provided to the blend weave and edge/vertical interpolation module 716.
The edge direction module 706 detects an edge in an interlaced picture. The edge can be detected using a variety of techniques, including, by way of example, using gradients of image intensity. The result of the edge direction module 706 is provided to the edge pixel calculation module 710 and the confidence level module 712. The vertical interpolation calculation module 708 calculates a pixel using vertical interpolation. The result of the vertical interpolation calculation module 708 is provided to the blend edge and vertical interpolation based on confidence level module 714.
The edge pixel calculation module 710 receives the results of the edge direction module 706 and the confidence level module 712 to generate a calculation for pixels located along the detected edge. In some embodiments, the calculation can be determined by computing the angle of the detected edge and mapping the angle to predetermined bins. The calculation provides the blend edge and vertical interpolation based on confidence level module 714 along with the results of the confidence level module 712. The blend edge and vertical interpolation based on confidence level module 714 blends the results of the edge pixel calculation module 710 and the vertical interpolation calculation module 708 based on the results from the confidence level module 712. The result of the blend edge and vertical interpolation based on confidence level module 714 is a second deinterlaced picture.
The second deinterlaced picture is provided to the blend weave and edge/vertical interpolation based on motion module 716. The blend weave and edge/vertical interpolation based on motion module 716 blends the first deinterlaced picture from the weave calculation module 704 with the second deinterlaced picture from the blend edge and vertical interpolation based on confidence level module 714. The blending is based on the results of the motion module 702. The result of the blend weave and edge/vertical interpolation based on motion module 716 is a final deinterlaced picture 718.
In operation, the cadence detection module 802 provides an output to the optimization module 804 if a cadence has been identified. The optimization module also receives a deinterlaced picture 806 from another source. In one embodiment, the deinterlaced picture 806 can be provided by the blend weave and edge/vertical interpolation based on motion module 716 as depicted in
As used herein, the term “embodiment” means an embodiment that serves to illustrate by way of example but not limitation. Also, reference has been made to an image represented by pixels. However, in other embodiments, the image can be represented by any convenient and/or known discrete component that forms the basic unit of the composition of an image.
It will be appreciated to those skilled in the art that the preceding examples and embodiments are exemplary and not limiting to the scope of the present invention. It is intended that all permutations, enhancements, equivalents, and improvements thereto that are apparent to those skilled in the art upon a reading of the specification and a study of the drawings are included within the true spirit and scope of the present invention. It is therefore intended that the following appended claims include all such modifications, permutations and equivalents as fall within the true spirit and scope of the present invention.
This Application claims the benefit of U.S. Provisional Application No. 60/715,711, entitled “Source Adaptive Video Deinterlacer” by Dale Adams filed on Sep. 8, 2005, which is incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5357606 | Adams | Oct 1994 | A |
5532751 | Lui | Jul 1996 | A |
5550592 | Markandey et al. | Aug 1996 | A |
5689301 | Christopher et al. | Nov 1997 | A |
5796875 | Read | Aug 1998 | A |
5857118 | Adams et al. | Jan 1999 | A |
5920356 | Gupta et al. | Jul 1999 | A |
6055018 | Swan | Apr 2000 | A |
6064776 | Kikuchi et al. | May 2000 | A |
6069664 | Zhu et al. | May 2000 | A |
6167164 | Lee et al. | Dec 2000 | A |
6219747 | Banks et al. | Apr 2001 | B1 |
6285801 | Mancuso et al. | Sep 2001 | B1 |
6380978 | Adams et al. | Apr 2002 | B1 |
6385692 | Banks et al. | May 2002 | B2 |
6393505 | Scalise et al. | May 2002 | B1 |
6421090 | Jiang et al. | Jul 2002 | B1 |
6459455 | Jiang et al. | Oct 2002 | B1 |
6473476 | Banks | Oct 2002 | B1 |
6489998 | Thompson et al. | Dec 2002 | B1 |
6515706 | Thompson et al. | Feb 2003 | B1 |
6587158 | Adams et al. | Jul 2003 | B1 |
6681059 | Thompson | Jan 2004 | B1 |
6700622 | Adams et al. | Mar 2004 | B2 |
6757022 | Wredenhagen | Jun 2004 | B2 |
6757442 | Avinash | Jun 2004 | B1 |
6859237 | Swartz | Feb 2005 | B2 |
6867814 | Adams et al. | Mar 2005 | B2 |
6999047 | Holtslag | Feb 2006 | B1 |
7023487 | Adams | Apr 2006 | B1 |
7027099 | Thompson et al. | Apr 2006 | B2 |
7089577 | Rakib et al. | Aug 2006 | B1 |
7126643 | Song et al. | Oct 2006 | B2 |
7136541 | Zhang et al. | Nov 2006 | B2 |
7154556 | Wang et al. | Dec 2006 | B1 |
7206025 | Choi et al. | Apr 2007 | B2 |
7236209 | Martin | Jun 2007 | B2 |
7345708 | Winger et al. | Mar 2008 | B2 |
7349028 | Neuman et al. | Mar 2008 | B2 |
7362376 | Winger et al. | Apr 2008 | B2 |
7391468 | Shah | Jun 2008 | B2 |
7400359 | Adams | Jul 2008 | B1 |
7412096 | Neuman et al. | Aug 2008 | B2 |
7414671 | Gallagher et al. | Aug 2008 | B1 |
7417686 | Zhu | Aug 2008 | B2 |
7474354 | Kawamura et al. | Jan 2009 | B2 |
7515205 | Wang et al. | Apr 2009 | B1 |
7519332 | Suematsu | Apr 2009 | B1 |
7529426 | Neuman | May 2009 | B2 |
7557861 | Wyman | Jul 2009 | B2 |
7605866 | Conklin | Oct 2009 | B2 |
7659939 | Winger et al. | Feb 2010 | B2 |
7667773 | Han | Feb 2010 | B2 |
7710501 | Adams et al. | May 2010 | B1 |
20020149685 | Kobayashi et al. | Oct 2002 | A1 |
20020149703 | Adams et al. | Oct 2002 | A1 |
20040042673 | Boon | Mar 2004 | A1 |
20040189877 | Choi et al. | Sep 2004 | A1 |
20050122433 | Satou et al. | Jun 2005 | A1 |
20050128360 | Lu | Jun 2005 | A1 |
20060072037 | Wyman | Apr 2006 | A1 |
20070052845 | Adams | Mar 2007 | A1 |
20070103588 | MacInnis et al. | May 2007 | A1 |
20070223835 | Yamada et al. | Sep 2007 | A1 |
20080123998 | Gomi et al. | May 2008 | A1 |
20080143873 | Neuman | Jun 2008 | A1 |
20080151103 | Asamura et al. | Jun 2008 | A1 |
Number | Date | Country |
---|---|---|
0881837 | Dec 1998 | EP |
1039760 | Sep 2000 | EP |
1434438 | Jun 2004 | EP |
1492344 | Dec 2004 | EP |
2001245155 | Sep 2001 | JP |
2005122361 | May 2005 | JP |
2007213125 | Aug 2007 | JP |
Number | Date | Country | |
---|---|---|---|
20070052845 A1 | Mar 2007 | US |
Number | Date | Country | |
---|---|---|---|
60715711 | Sep 2005 | US |