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,711 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 is a divisional of U.S. application Ser. No. 11/437,357 entitled “Edge Detection” filed on May 19, 2006 which claims the benefit of U.S. Provisional Application No. 60/715,711 entitled “Source-Adaptive Video Deinterlacer” filed on Sep. 8, 2005, both of which are herein incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5305106 | Fukushima et al. | Apr 1994 | A |
5357606 | Adams | Oct 1994 | A |
5436668 | Tults | Jul 1995 | A |
5532751 | Lui | Jul 1996 | A |
5550592 | Markandey et al. | Aug 1996 | A |
5661525 | Kovacevic et al. | Aug 1997 | A |
5689301 | Christopher et al. | Nov 1997 | A |
5790269 | Masaki et al. | Aug 1998 | A |
5796875 | Read | Aug 1998 | A |
5828786 | Rao et al. | Oct 1998 | A |
5852475 | Gupta et al. | Dec 1998 | A |
5920356 | Gupta et al. | Jul 1999 | A |
5943099 | Kim | Aug 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 |
6181382 | Kieu et al. | Jan 2001 | B1 |
6285801 | Mancuso et al. | Sep 2001 | B1 |
6380978 | Adams et al. | Apr 2002 | B1 |
6421090 | Jiang et al. | Jul 2002 | B1 |
6459455 | Jiang et al. | Oct 2002 | B1 |
6489998 | Thompson et al. | Dec 2002 | B1 |
6515706 | Thompson et al. | Feb 2003 | B1 |
6525774 | Sugihra | Feb 2003 | B1 |
6542199 | Manbeck et al. | Apr 2003 | B1 |
6577345 | Lim et al. | Jun 2003 | B1 |
6587158 | Adams et al. | Jul 2003 | B1 |
6621937 | Adams et al. | Sep 2003 | B1 |
6681059 | Thompson | Jan 2004 | B1 |
6700622 | Adams et al. | Mar 2004 | B2 |
6757022 | Wredenhagen et al. | Jun 2004 | B2 |
6757442 | Avinash | Jun 2004 | B1 |
6859237 | Swartz | Feb 2005 | B2 |
6867814 | Adams et al. | Mar 2005 | B2 |
6870562 | Johnson et al. | Mar 2005 | B2 |
6975776 | Ferguson | Dec 2005 | B2 |
6999047 | Holtslag | Feb 2006 | B1 |
7012649 | Michel | Mar 2006 | B2 |
7023487 | Adams | Apr 2006 | B1 |
7027099 | Thompson et al. | Apr 2006 | B2 |
7126643 | Song et al. | Oct 2006 | B2 |
7136541 | Zhang et al. | Nov 2006 | B2 |
7154555 | Conklin | Dec 2006 | B2 |
7154556 | Wang et al. | Dec 2006 | B1 |
7167977 | Morris | Jan 2007 | B2 |
7206025 | Choi | Apr 2007 | B2 |
7236209 | Martin | Jun 2007 | B2 |
7257272 | Blake et al. | Aug 2007 | B2 |
7265791 | Song et al. | Sep 2007 | B2 |
7321396 | Jung et al. | Jan 2008 | B2 |
7345708 | Winger et al. | Mar 2008 | B2 |
7349028 | Neuman et al. | Mar 2008 | B2 |
7349029 | Chou et al. | Mar 2008 | B1 |
7362376 | Winger et al. | Apr 2008 | B2 |
7379626 | Lachine et al. | May 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 |
7423691 | Orlick et al. | Sep 2008 | B2 |
7474354 | Kawamura et al. | Jan 2009 | B2 |
7515205 | Wang et al. | Apr 2009 | B1 |
7529426 | Neuman | May 2009 | B2 |
7551800 | Corcoran et al. | Jun 2009 | B2 |
7554602 | Liao et al. | Jun 2009 | B2 |
7557861 | Wyman | Jul 2009 | B2 |
7605866 | Conklin | Oct 2009 | B2 |
7657098 | Lin et al. | Feb 2010 | B2 |
7659939 | Winger et al. | Feb 2010 | B2 |
7667773 | Han | Feb 2010 | B2 |
7710501 | Adams et al. | May 2010 | B1 |
7787048 | Vojkovich et al. | Aug 2010 | B1 |
7796191 | Vojkovich | Sep 2010 | B1 |
7865035 | Lin et al. | Jan 2011 | B2 |
7940992 | Johnson et al. | May 2011 | B2 |
7969511 | Kim | Jun 2011 | B2 |
7982798 | Adams | Jul 2011 | B2 |
7986854 | Kim et al. | Jul 2011 | B2 |
7990471 | Otobe et al. | Aug 2011 | B1 |
8004606 | Dale | Aug 2011 | B2 |
8086067 | Thompson | Dec 2011 | B2 |
8120703 | Dale | Feb 2012 | B2 |
20020149685 | Kobayashi et al. | Oct 2002 | A1 |
20030095205 | Orlick et al. | May 2003 | A1 |
20030103680 | Westerman | Jun 2003 | A1 |
20030156301 | Kempf et al. | Aug 2003 | A1 |
20040042673 | Boon | Mar 2004 | A1 |
20040189877 | Choi et al. | Sep 2004 | A1 |
20040207753 | Jung | Oct 2004 | A1 |
20050046741 | Wu | Mar 2005 | A1 |
20050122433 | Satou et al. | Jun 2005 | A1 |
20050128360 | Lu | Jun 2005 | A1 |
20050129306 | Wang et al. | Jun 2005 | A1 |
20050201626 | Kang et al. | Sep 2005 | A1 |
20050243204 | Zhu | Nov 2005 | A1 |
20060002624 | Tamura | Jan 2006 | A1 |
20060072037 | Wyman | Apr 2006 | A1 |
20060133772 | Nakajima | Jun 2006 | A1 |
20070052845 | Adams | Mar 2007 | A1 |
20070103587 | MacInnis et al. | May 2007 | A1 |
20070103588 | MacInnis et al. | May 2007 | A1 |
20070223835 | Yamada et al. | Sep 2007 | A1 |
20080117330 | Winger et al. | May 2008 | A1 |
20080123998 | Gomi et al. | May 2008 | A1 |
20080143873 | Neuman | Jun 2008 | A1 |
20080151103 | Asamura et al. | Jun 2008 | A1 |
20080152253 | Thompson | Jun 2008 | A1 |
20090196500 | Shi et al. | Aug 2009 | A1 |
20090262247 | Huang et al. | Oct 2009 | A1 |
20100054622 | Adams | Mar 2010 | A1 |
20100157147 | Bellers | Jun 2010 | A1 |
20100202262 | Adams et al. | Aug 2010 | A1 |
Number | Date | Country |
---|---|---|
0881837 | Dec 1998 | EP |
1039760 | Sep 2000 | EP |
1434438 | Jun 2004 | EP |
1492344 | Dec 2004 | EP |
2001-245155 | Sep 2001 | JP |
2005-122361 | May 2005 | JP |
2007-213125 | Aug 2007 | JP |
Entry |
---|
International Preliminary Report on Patentability in International Patent Application No. PCT/US2009/054427, dated Mar. 17, 2011, 5 pages. |
Notice of Allowance for U.S. Appl. No. 11/941,050, mailed Aug. 18, 2011, 10 pages. |
International Preliminary Report on Patentability for International Patent Application No. PCT/US2007/084881, mailed Jul. 2, 2009. |
International Preliminary Report on Patentability for International Patent Application No. PCT/US2006/034785, mailed Mar. 20, 2008. |
Final Office Action for U.S. Appl. No. 11/941,050, mailed Jul. 13, 2011, 16 pages. |
Office Action mailed Feb. 22, 2012, in U.S. Appl No. 12/204,760, 12 pages. |
International Preliminary Report on Patentability for International Patent Application No. PCT/US2010/023775, Mailed Aug. 25, 2011, 6 pages. |
Adams, D., U.S. Appl. No. 10/753,909, entitled, “Video Stream Routing & Format Conversion Unite With Audio Delay”, filed Jan. 7, 2004, background pp. 2-9. |
Analog Devices CMOS 180 MHz DDS/DAC Synthesizer, AD9851, Rev. C, Analog Devices, Inc., www.analog.com, 24 pages (1999). |
Communication pursuant to Article 94(3) EPC dated Feb. 10, 2011, in European Patent Application No. 06 814 256.1, 4 pages. |
Final Office Action mailed Apr. 19, 2010, in U.S. Appl. No. 11/487,144, filed Jul. 13, 2006. |
International Preliminary Report on Patentability dated Mar. 8, 2011, in International Patent Application No. PCT/US2009/054427, 5 pages. |
Non-Final Office Action mailed Aug. 20, 2010 in U.S. Appl. No. 11/487,144. |
Non-Final Office Action mailed Dec. 13, 2010, in U.S. Appl. No. 11/512,754. |
Non-Final Office Action mailed Dec. 31, 2009, in U.S. Appl. No. 11/487,144. |
Non-Final Office Action mailed Feb. 1, 2011, in U.S. Appl. No. 11/941,050. |
Non-Final Office Action mailed Jun. 25, 2010, in U.S. Appl. No. 11/512,754. |
Non-Final Office Action mailed Mar. 18, 2008, in U.S. Appl. No. 10/753,909. |
Non-Final Office Action mailed May 11, 2011, in U.S. Appl. No. 11/512,754. |
Non-Final Office Action mailed Sep. 11, 2009 in U.S. Appl. No. 10/889,855. |
Non-Final Office Action mailed Sep. 23, 2010 in U.S. Appl. No. 11/437,357. |
Notice of Preliminary Rejection dated Aug. 23, 2012 (+ English translation), in Korean Patent Application No. 10-2008-7005491, 6 pages. |
Office Action mailed Aug. 18, 2010, in Canadian Patent Application No. 2,620,820. |
Office Action mailed Jul. 16, 2010, in European Patent Application No. 06814256.1. |
Supplementary European Search Report and Opinion dated Mar. 31, 2010, in European Patent Application No. 06814256.1, 7 pages. |
Number | Date | Country | |
---|---|---|---|
20110249179 A1 | Oct 2011 | US |
Number | Date | Country | |
---|---|---|---|
60715711 | Sep 2005 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11437357 | May 2006 | US |
Child | 13153230 | US |