CN101521761B - Method and device for image deinterlacing using horizontal displacement estimation and compensation - Google Patents
Method and device for image deinterlacing using horizontal displacement estimation and compensation Download PDFInfo
- Publication number
- CN101521761B CN101521761B CN200810081294XA CN200810081294A CN101521761B CN 101521761 B CN101521761 B CN 101521761B CN 200810081294X A CN200810081294X A CN 200810081294XA CN 200810081294 A CN200810081294 A CN 200810081294A CN 101521761 B CN101521761 B CN 101521761B
- Authority
- CN
- China
- Prior art keywords
- pixel
- horizontal displacement
- displacement vector
- unit
- field
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Television Systems (AREA)
Abstract
Description
技术领域technical field
本发明提供一种影像去交错化方法与装置,尤指一种利用水平位移预估(horizontal motion estimation)与水平位移补偿(horizontal motioncompensation)的影像去交错化的方法与装置。 The present invention provides an image de-interlacing method and device, especially an image de-interlacing method and device using horizontal motion estimation and horizontal motion compensation. the
背景技术Background technique
传统的交错式扫描(interlaced scanning)技术是将组成该帧的二个场作交错显示。该二个场由奇场及偶场所组成。而循序式扫描(progressive scan)技术,又称非交错式扫描(non-interlaced),则是先将两个场合并为一个帧,再以加倍的水平扫描频率依序扫描该帧中的所有扫描线,使画面的质量得以提升。 The traditional interlaced scanning technology is to interleave the two fields that make up the frame. The two fields consist of an odd field and an even field. The progressive scan technology, also known as non-interlaced scan (non-interlaced), first merges two fields into one frame, and then scans all the scans in the frame in sequence at a doubled horizontal scan frequency. lines to improve the picture quality. the
为了以循序式扫描方式来显示交错式的影像数据,便需利用去交错(de-interlacing)方法于一场原有的连续两扫描线间插补出一新的扫描线。现有技术普遍利用位移调适性(motion-adaptive)的处理方法来进行去交错化操作。 In order to display interlaced image data in a sequential scanning manner, it is necessary to use a de-interlacing method to interpolate a new scanning line between two original continuous scanning lines in a field. In the prior art, a motion-adaptive (motion-adaptive) processing method is commonly used to perform the de-interlacing operation. the
然而,在利用位移调适性来进行去交错化处理时,大多无法内插出高频且移动的细节,且若视频数据在进行去交错化操作之前又经过影像编译码(video encode/decode)处理,其泛色现象会让高频部分更加失真而难以内插出原来的影像,进而使得去交错化处理后的影像的画面质量不佳。 However, when de-interlacing is performed using displacement adaptability, most of the high-frequency and moving details cannot be interpolated, and if the video data is processed by video encode/decode before de-interlacing , the flooding phenomenon will make the high-frequency part more distorted, making it difficult to interpolate the original image, and then make the picture quality of the de-interlaced image poor. the
发明内容Contents of the invention
因此本发明的主要目的在于提供一种可侦测同一种场间的一水平位移向量并依据该水平位移向量对一输出帧的一目标像素进行一水平位移补偿的影像去交错化的方法与装置,以提升画面质量并降低相关硬件成本。 Therefore, the main purpose of the present invention is to provide a method and device for image deinterlacing that can detect a horizontal displacement vector between fields of the same type and perform horizontal displacement compensation on a target pixel of an output frame according to the horizontal displacement vector , to improve image quality and reduce related hardware costs. the
依据本发明的实施例,其揭露一种去交错方法,用来去交错一视频数据。该视频数据包括一第一、第二、第三、第四及第五场,以及该视频数据于该第三场输出时产生一输出帧。该方法包括下列步骤:依据该第一及第三场、 该第三及第五场以及该第二及第四场的至少其中的一组,进行水平位移预估以侦测一水平位移向量;以及若侦测出该水平位移向量,则依据该水平位移向量自该第二场中选择一第一像素与自该第四场中选择一第二像素,并依据该第一像素与该第二像素来内插出对应该输出帧中一目标像素的一特定像素值。 According to an embodiment of the present invention, it discloses a de-interlacing method for de-interlacing a video data. The video data includes a first, second, third, fourth and fifth field, and an output frame is generated when the video data is output in the third field. The method includes the following steps: performing horizontal displacement estimation to detect a horizontal displacement vector according to at least one of the first and third fields, the third and fifth fields, and the second and fourth fields; and if the horizontal displacement vector is detected, selecting a first pixel from the second field and a second pixel from the fourth field according to the horizontal displacement vector, and selecting a second pixel from the fourth field according to the first pixel and the second pixel to interpolate a specific pixel value corresponding to a target pixel in the output frame. the
依据本发明的实施例,其另揭露一种去交错装置,用来去交错一视频数据。该视频数据包括一第一、第二、第三、第四及第五场,以及该视频数据于该第三场输出时产生一输出帧。该装置包括一水平位移预估单元以及一水平位移补偿单元。该水平位移预估单元依据该第一及第三场、该第三及第五场以及该第二及第四场的至少其中的一组进行水平位移预估以侦测一水平位移向量。该水平位移补偿单元耦接于该水平位移预估单元,其中若该水平位移预估单元侦测出该水平位移向量,则依据该水平位移向量自该第二场中选择一第一像素与自该第四场中选择一第二像素,并依据该第一像素与该第二像素来内插出对应该输出帧中一目标像素的一特定像素值。 According to an embodiment of the present invention, it further discloses a de-interlacing device for de-interlacing a video data. The video data includes a first, second, third, fourth and fifth field, and an output frame is generated when the video data is output in the third field. The device includes a horizontal displacement estimation unit and a horizontal displacement compensation unit. The horizontal displacement estimation unit performs horizontal displacement estimation according to at least one of the first and third fields, the third and fifth fields, and the second and fourth fields to detect a horizontal displacement vector. The horizontal displacement compensation unit is coupled to the horizontal displacement estimation unit, wherein if the horizontal displacement estimation unit detects the horizontal displacement vector, selects a first pixel from the second field according to the horizontal displacement vector and A second pixel is selected in the fourth field, and a specific pixel value corresponding to a target pixel in the output frame is interpolated according to the first pixel and the second pixel. the
附图说明Description of drawings
图1为包含有五相邻场的一视频数据与相对应的一输出帧的示意图。 FIG. 1 is a schematic diagram of a video data including five adjacent fields and a corresponding output frame. the
图2为本发明的一实施例的去交错装置的示意图。 FIG. 2 is a schematic diagram of a deinterleaving device according to an embodiment of the present invention. the
图3为本发明水平位移补偿单元进行水平位移补偿的示意图。 FIG. 3 is a schematic diagram of the horizontal displacement compensation performed by the horizontal displacement compensation unit of the present invention. the
图4为图2所示的去交错装置进行去交错运算的流程图。 FIG. 4 is a flow chart of the deinterleaving operation performed by the deinterleaving device shown in FIG. 2 . the
图5为本发明另一实施例的去交错装置的示意图。 FIG. 5 is a schematic diagram of a deinterleaving device according to another embodiment of the present invention. the
图6为图5所示的去交错装置进行去交错运算的流程图。 FIG. 6 is a flow chart of the de-interleaving operation performed by the de-interleaving device shown in FIG. 5 . the
【主要组件符号说明】 【Description of main component symbols】
具体实施方式Detailed ways
请参阅图1。图1为包含有五相邻场(field)的一视频数据100与相对应的一输出帧(frame)160的示意图。去交错后的输出帧160对应于时间T, 而视频数据100中的五个相邻场110、120、130、140以及150,分别对应于时间T-2、T-1、T、T+1以及T+2。在图1中,扫描线112、132、152及162分别为场110、130、150及160中的第N-1条扫描线;扫描线123、143及163分别为场120、140及160中的第N条扫描线;而扫描线114、134、154及164则分别为场110、130、150及160中的第N+1条扫描线,其中第N-1条扫描线与第N+1条扫描线属同一种场而第N条扫描线属另一种场。另外,于本发明的实施例中的去交错方法以逐像素方式(pixel-by-pixel basis)来产生输出帧160。 See Figure 1. FIG. 1 is a schematic diagram of a
请参阅图2,图2为本发明的一实施例的去交错装置200的示意图。去交错装置200包含有一水平位移预估单元210以及一水平位移补偿单元220,而水平位移补偿单元220则包含有一选择单元222以及一计算单元224。当视频数据输入至去交错装置200中的水平位移预估单元210后,水平位移预估单元210会对该视频数据进行水平位移预估的动作。在本实施例中,假设去交错装置200对于场130的一目标像素10进行去交错处理以产生相对应于该输出帧160的该目标像素10。因此,本发明的水平位移预估单元210会对于目标像素10的邻近区域进行水平位移判断的动作。在实作上,水平位移预估单元210可以该目标像素10为中心,设定一预估范围(window),并在该预估范围内对场130进行帧间的位移侦测(motion detection)以找出一水平位移向量(motion vector)来。如图1所示,在本实施例中,假设一预估范围101设定为一2*5像素大小,然后水平位移预估单元210可依据预估范围101而比对场130与场150或是与场110的位移变化,或/及依据预估范围101来比对邻近的场120与场140的位移变化,例如图1所示的场130的像素15及16的像素值移动至场150的像素13及14,或是场120中的像素12的像素值移动至场140的像素11的像素值。因此本实施例中水平位移预估单元210判断在目标像素10的邻近部分有水平位移发生且水平位移向量为+2。 Please refer to FIG. 2 , which is a schematic diagram of a
请参阅图3,图3为本发明水平位移补偿单元220进行水平位移补偿的示意图。在水平位移预估单元210将所判断出来的水平位移向量输入至水平位移补偿单元220中的选择单元222之后。选择单元222依据水平位移向量来选取欲用来内插出目标像素10的参考像素出来,如图3所示,在本实施例中,由于水平位移向量为+2,因此选择单元222选择对应于场130中目标像素10的前一个场120的像素12以及对应于场130中目标像素10的后一个场 140的像素11来作为用来内插出目标像素10的参考像素。请注意,在本实施例中其水平位移向量为一偶数值,因此水平位移补偿单元220可选择前后各一个像素来作为参考像素,然而若水平位移向量为一奇数值(例如+3),则本发明水平位移补偿单元220亦可选择对应该水平位移向量的前后各两个像素来作为参考像素,例如在水平位移向量为+3的情况下选择单元222可选择对应于场130中目标像素10的前一个场120的像素12、20以及对应于场130中目标像素10的后一个场140的像素11、19来作为用来内插出目标像素10的参考像素。接下来,水平位移补偿单元220中的计算单元224再依据对应目标像素10的参考像素(例如场120的像素12以及场140的像素11),利用平均参考像素的像素值来内插出输出帧160的目标像素10的像素值以完成去交错化的动作。 Please refer to FIG. 3 . FIG. 3 is a schematic diagram of horizontal displacement compensation performed by the horizontal
请参阅图4,图4为图2所示的去交错装置200进行去交错运算的流程图。请注意,流程图中相关步骤不一定遵照此排序来连续执行,且其它的步骤亦可能插入其中。去交错装置200进行去交错运算的步骤可归纳如下: Please refer to FIG. 4 . FIG. 4 is a flow chart of the de-interleaving operation performed by the
步骤400:水平位移预估单元210依据一预估范围101对该目标像素10进行水平位移预估的动作。 Step 400 : The horizontal
步骤402:若水平位移预估单元210判断该目标像素10的邻近区域有水平位移动作发生,则执行步骤404,反之,结束此流程。 Step 402: If the horizontal
步骤404:水平位移预估单元210依据该水平位移决定一水平位移向量。 Step 404: The horizontal
步骤406:选择单元222依据该水平位移向量决定相对于该目标像素10的复数个参考像素11、12。 Step 406: The
步骤408:计算单元224平均参考像素11、12的像素值作为目标像素10的像素值。 Step 408 : The
请参阅图5,图5为本发明另一实施例的去交错装置500的示意图。在本发明实施例中,去交错装置500包含有水平位移预估单元510、一水平位移补偿单元520、一位移调适性电路530以及一决定单元540。水平位移补偿单元520则包含有一选择单元522以及一计算单元524。请注意,图5所示的去交错装置500与图2所示的去交错装置200中的同名组件具有相同的功能与操作,故于此不另赘述。如上所述,由于习知位移调适性电路530利用位移调适性去交错方法(motion adaptive de-interlacing)来进行去交错动作时,大多无法内插出高频且移动的细节因而造成影像的失真。因此,可利用本发 明水平位移预估单元510以及水平位移补偿单元520来补足位移调适性电路530的不足。在本实施例中,当水平位移预估单元510对一目标像素进行水平位移预估时,若该目标像素10有水平位移发生,则决定单元540依据水平位移补偿单元520所计算出的像素值来当作目标像素10的像素值,而不选取位移调适性电路530所计算出来的像素值;另一方面,若该目标像素10被水平位移预估单元510判断出没有水平位移发生时,则决定单元540便选取位移调适性电路530所计算出来的像素值来当作目标像素10的像素值,而不去选取水平位移补偿单元520所计算出的像素值。因此,本发明去交错装置500可以依据目标像素的水平位移发生与否,来决定欲差补该目标像素10的去交错方式,因此加强了去交错过程的准确度以及敏感度,进而大幅提升了画面的质量。 Please refer to FIG. 5 , which is a schematic diagram of a
请参阅图6,图6为图5所示的去交错装置500进行去交错运算的流程图。请注意,流程图中相关步骤不一定遵照此排序来连续执行,且其它的步骤亦可能插入其中。去交错装置500进行去交错运算的步骤可归纳如下: Please refer to FIG. 6 . FIG. 6 is a flow chart of the de-interleaving operation performed by the
步骤600:水平位移预估单元510对该目标像素10进行水平位移预估的动作。 Step 600 : The horizontal
步骤602:水平位移补偿单元520依据水平位移预估单元510所决定的一水平位移向量来产生一特定像素值。 Step 602 : The horizontal
步骤604:位移调适性电路530则依据一位移调适性去交错以产生一候选像素值。 Step 604: The
步骤606:若侦测到该水平位移向量,则决定单元540使用该特定像素值来设定该目标像素;以及若未侦测到该水平位移向量,则该决定单元540使用该候选像素值来设定该目标像素。 Step 606: If the horizontal displacement vector is detected, the
相较于现有技术,本发明的去交错装置在利用水平位移预估与水平位移补偿来进行影像去交错操作时,利用了一预估范围来侦测目标范围的水平移动,因此可大幅减少大范围搜寻所需的硬件成本。另一方面,本发明的去交错装置亦可利用水平位移预估与水平位移来补足位移调适性去交错方式的不足,不仅加强了去交错过程的准确度以及敏感度,并进而大幅提升了整体画面的质量。 Compared with the prior art, when the de-interlacing device of the present invention uses horizontal displacement estimation and horizontal displacement compensation to perform image de-interlacing operation, it uses an estimated range to detect the horizontal movement of the target range, so it can greatly reduce The hardware cost required for large-scale searches. On the other hand, the de-interlacing device of the present invention can also use the horizontal displacement estimation and horizontal displacement to make up for the deficiencies of the displacement-adaptive de-interlacing method, which not only enhances the accuracy and sensitivity of the de-interlacing process, but also greatly improves the overall Picture quality. the
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。 The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention. the
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810081294XA CN101521761B (en) | 2008-02-26 | 2008-02-26 | Method and device for image deinterlacing using horizontal displacement estimation and compensation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810081294XA CN101521761B (en) | 2008-02-26 | 2008-02-26 | Method and device for image deinterlacing using horizontal displacement estimation and compensation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101521761A CN101521761A (en) | 2009-09-02 |
CN101521761B true CN101521761B (en) | 2011-03-30 |
Family
ID=41082108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810081294XA Active CN101521761B (en) | 2008-02-26 | 2008-02-26 | Method and device for image deinterlacing using horizontal displacement estimation and compensation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101521761B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016831B (en) * | 2022-12-13 | 2023-12-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Low-time-delay image de-interlacing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6512550B1 (en) * | 1999-06-29 | 2003-01-28 | Lsi Logic Corporation | Motion compensated de-interlacing |
US6577345B1 (en) * | 1999-07-29 | 2003-06-10 | Lg Electronics Inc. | Deinterlacing method and apparatus based on motion-compensated interpolation and edge-directional interpolation |
CN1674669A (en) * | 2004-03-26 | 2005-09-28 | 瑞昱半导体股份有限公司 | Image Deinterlacing Method and Device Using Displacement Vector Compensation |
CN1741603A (en) * | 2004-08-26 | 2006-03-01 | 瑞昱半导体股份有限公司 | Deinterlacing method and related device |
CN1774079A (en) * | 2004-11-10 | 2006-05-17 | 瑞昱半导体股份有限公司 | Ways to suppress wrong image colors |
-
2008
- 2008-02-26 CN CN200810081294XA patent/CN101521761B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6512550B1 (en) * | 1999-06-29 | 2003-01-28 | Lsi Logic Corporation | Motion compensated de-interlacing |
US6577345B1 (en) * | 1999-07-29 | 2003-06-10 | Lg Electronics Inc. | Deinterlacing method and apparatus based on motion-compensated interpolation and edge-directional interpolation |
CN1674669A (en) * | 2004-03-26 | 2005-09-28 | 瑞昱半导体股份有限公司 | Image Deinterlacing Method and Device Using Displacement Vector Compensation |
CN1741603A (en) * | 2004-08-26 | 2006-03-01 | 瑞昱半导体股份有限公司 | Deinterlacing method and related device |
CN1774079A (en) * | 2004-11-10 | 2006-05-17 | 瑞昱半导体股份有限公司 | Ways to suppress wrong image colors |
Also Published As
Publication number | Publication date |
---|---|
CN101521761A (en) | 2009-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Chen et al. | Efficient deinterlacing algorithm using edge-based line average interpolation | |
JP4563603B2 (en) | Format conversion apparatus and method using bi-directional motion vectors | |
Lin et al. | Motion adaptive interpolation with horizontal motion detection for deinterlacing | |
CN100479495C (en) | Deinterlacing method using motion detection and adaptive weighted filtering | |
Chen et al. | A low-complexity interpolation method for deinterlacing | |
CN102025960B (en) | Motion compensation de-interlacing method based on adaptive interpolation | |
CN101014086A (en) | De-interlacing apparatus using motion detection and adaptive weighted filter | |
KR19990031433A (en) | Scan converter circuit | |
CN103051857B (en) | Motion compensation-based 1/4 pixel precision video image deinterlacing method | |
CN101867759A (en) | Adaptive Motion Compensation Frame Rate Improvement Method Based on Scene Detection | |
CN102215368A (en) | Motion self-adaptive de-interlacing method based on visual characteristics | |
CN102946505A (en) | Self-adaptive motion detection method based on image block statistics | |
CN102045530B (en) | Motion adaptive de-interlacing method based on edge detection | |
CN101521761B (en) | Method and device for image deinterlacing using horizontal displacement estimation and compensation | |
CN101600062B (en) | In-field deinterlacing method based on enhanced edge adaptivity | |
CN103024331B (en) | Video de-interlacing method based on edge detection | |
CN102170549A (en) | Edge correlation image intra-field de-interlacing algorithm of edge pre-judgment | |
JP4031390B2 (en) | Image conversion apparatus and image conversion method | |
CN100367771C (en) | A Method of Adaptively Suppressing Image Noise | |
US7405765B2 (en) | Method and apparatus for de-interlacing video data | |
CN1444401A (en) | Method for removing intersection by adopting error protection motion compensation and its equipment | |
CN1239023C (en) | Three-dimensional video format conversion method based on motion adaption and marginal protection | |
US8508660B2 (en) | De-interlacing methods and related apparatuses | |
US20080055465A1 (en) | Method and apparatus for de-interlacing video data | |
US7446818B2 (en) | Apparatus and related method for film mode detection using motion estimation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |