[go: up one dir, main page]

CN1317894C - Adaptive image frame deinterlacing device and method - Google Patents

Adaptive image frame deinterlacing device and method Download PDF

Info

Publication number
CN1317894C
CN1317894C CNB2004101041912A CN200410104191A CN1317894C CN 1317894 C CN1317894 C CN 1317894C CN B2004101041912 A CNB2004101041912 A CN B2004101041912A CN 200410104191 A CN200410104191 A CN 200410104191A CN 1317894 C CN1317894 C CN 1317894C
Authority
CN
China
Prior art keywords
line segment
image frame
value
deinterlace
vector
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.)
Expired - Lifetime
Application number
CNB2004101041912A
Other languages
Chinese (zh)
Other versions
CN1622615A (en
Inventor
陈浩彰
曹盛哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2004101041912A priority Critical patent/CN1317894C/en
Publication of CN1622615A publication Critical patent/CN1622615A/en
Application granted granted Critical
Publication of CN1317894C publication Critical patent/CN1317894C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)

Abstract

A adaptive image picture de-interlacing device and method comprises a line segment characteristic difference value calculating module, which calculates a line segment characteristic difference value of a line segment in an image picture; a motion vector calculation module, which calculates the motion vector of the macro block containing line segment in the image picture; an intra block number calculation module that calculates a number of intra blocks in an image picture, wherein the intra blocks represent macroblocks within which there are no motion vectors; a trigger value generation module for judging whether the number of internal blocks is greater than the first critical value so as to select the generation mode of the trigger value; and an image processing module for judging whether the trigger value is larger than the second critical value so as to select the de-interlacing algorithm to perform de-interlacing processing of the line segment.

Description

自适应图像画面去交错装置及方法Adaptive image frame deinterlacing device and method

技术领域technical field

本发明涉及一种图像画面去交错装置及方法,特别涉及一种自适应图像画面去交错装置及方法。The invention relates to an image frame deinterlacing device and method, in particular to an adaptive image frame deinterlacing device and method.

背景技术Background technique

随着科技的发展,影音媒体的播放质量日益趋高,然而不同的图像处理方法,使得影音媒体在播放时,播放质量受到影响,其中一个明显的例子是将隔行扫描(interlace scan)的图像在逐行扫描(progressive scan)的图像播放平台播放。With the development of technology, the playback quality of audio-visual media is getting higher and higher. However, different image processing methods will affect the playback quality of audio-visual media during playback. An obvious example is the interlace scan image Progressive scan (progressive scan) image playback platform playback.

隔行扫描图像由两个视场(field)组成,其中每一个视场只包含图像的奇数线或图像的偶数线,所以在隔行扫描图像之中,每个奇数视场图像和偶数视场图像其分辨率只有原来图像的一半。隔行扫描方式的优点在于动态图像显示流畅,但缺点则是屏幕会产生闪烁。相较之下,逐行扫描的扫描速度是隔行扫描的两倍,所以画面较为纤细且清晰,因此目前的影音设备大都以逐行扫描方式来扫描及显示图像。An interlaced image consists of two fields, each of which contains only the odd lines of the image or the even lines of the image, so in an interlaced image, each odd field image and even field image The resolution is only half of the original image. The advantage of the interlaced scanning method is that the dynamic image display is smooth, but the disadvantage is that the screen will flicker. In contrast, the scanning speed of progressive scanning is twice that of interlaced scanning, so the picture is relatively slender and clear. Therefore, most current audio-visual equipment scans and displays images in progressive scanning.

现今模拟电视的扫描标准有National Televi sion SystemCommittee(NTSC)以及Phase Alternation by Line(PAL)二种,其中NTSC系统的图像仍是采用隔行扫描的方式,若直接将NTSC系统的图像直接播放于逐行扫描的显示系统,只能分别显示奇数视场和偶数视场的画面,因此播放图像的分辨率只有原来图像一半的分辨率,图像的播放质量将大打折扣;另一方面,若直接将隔行扫描的DVD图像直接播放于逐行扫描的显示系统,亦会产生前述的情况。为解决隔行扫描图像在逐行扫描播放平台播放时播放质量降低的问题,必须针对隔行扫描图像进行去交错处理(De-interlace)。去交错处理可以说是将隔行扫描图像转换成逐行扫描图像的一种方法。Today’s analog TV scanning standards include National Television System Committee (NTSC) and Phase Alternation by Line (PAL). Among them, the images of the NTSC system still use interlaced scanning. If the images of the NTSC system are directly played in progressive The scanning display system can only display the images of odd and even fields of view respectively, so the resolution of the playback image is only half of the resolution of the original image, and the playback quality of the image will be greatly reduced; on the other hand, if the interlaced scanning If the DVD image is directly played on a progressive scan display system, the aforementioned situation will also occur. In order to solve the problem that the playback quality of the interlaced scanning image is lowered when it is played on a progressive scanning playback platform, de-interlacing processing (De-interlace) must be performed on the interlaced scanning image. Deinterlacing can be said to be a method of converting an interlaced image into a progressive image.

去交错处理包含两种基本的线性转换技术,分别是编织处理(Weave)及摆动处理(Bob)。如图1A所示,编织处理是将两个输入视场(一奇数视场和一偶数视场)重叠或编织在一起,以产生一个顺序帧。如图1B所示,摆动处理是仅接受输入图像的其中一个视场(例如只接受偶数线的图像),而丢弃另一个视场(即奇数线的图像),因此画面在垂直方向的分辨率会变成原始图像的一半,为了让图像恢复成为原始图像的分辨率,通过同视场的两条相邻扫描线去填补彼此间被丢弃的另一视场扫描线。De-interlacing includes two basic linear conversion techniques, namely Weave and Bob. As shown in FIG. 1A , the weaving process is to overlap or weave two input fields of view (an odd-numbered field of view and an even-numbered field of view) together to generate a sequential frame. As shown in Figure 1B, the swing process only accepts one of the fields of view of the input image (for example, only accepts the image of even-numbered lines), and discards the other field of view (that is, the image of odd-numbered lines), so the resolution of the picture in the vertical direction It will become half of the original image. In order to restore the image to the resolution of the original image, two adjacent scanning lines of the same field of view are used to fill in the discarded scanning lines of another field of view.

编织处理对于静态图像有不错的处理效果,然而对于动态图像而言,编织处理会产生图像对准误差(misalignment),因此图像会出现锯齿状或是毛边的画面,使得播放质量下降;另一方面,摆动处理虽然可克服动态图像的图像对准误差,使动态图像较清晰及自然,但对于静态图像而言,经由摆动处理后的图像其垂直分辨率是降低后再以内插法补偿,使得画面容易模糊且较不锐利。Weaving processing has a good processing effect on static images, but for dynamic images, weaving processing will produce image misalignment, so the image will appear jagged or rough, which will reduce the playback quality; on the other hand Although the wobble processing can overcome the image alignment error of the dynamic image and make the dynamic image clearer and more natural, but for the static image, the vertical resolution of the image after the wobble processing is reduced and then compensated by interpolation, making the picture Blurred easily and less sharp.

有鉴于此,提供一种自适应图像画面去交错方法及装置,使其能够针对隔行扫描图像的特性而选择适当的去交错演算处理方法,进而使动态图像或是静态图像都能够经由较佳的去交错处理以提升播放质量。In view of this, an adaptive image frame de-interlacing method and device are provided, so that it can select an appropriate de-interlacing algorithm processing method according to the characteristics of interlaced images, so that both dynamic images or static images can be processed through better Deinterlace to improve playback quality.

发明内容Contents of the invention

有鉴于上述课题,本发明提供一种自适应图像画面去交错方法及装置。In view of the above problems, the present invention provides an adaptive image frame de-interlacing method and device.

于是,依据本发明的自适应图像画面去交错装置包含一线段(LineSegment)特征差值计算模块、一移动向量计算模块、一内块(IntraBlock)数量计算模块、一触发值(Trigger Value)产生模块以及一图像画面处理模块。其中,线段特征差值计算模块计算图像画面中线段的线段特征差值,移动向量计算模块计算图像画面中包含线段的宏块(Macro Block)的移动向量,内块数量计算模块计算图像画面中的内块数量,其中所述内块表示其内没有移动向量的宏块;触发值产生模块判断内块数量是否大于第一临界值,且当内块数量大于第一临界值时,依据线段特征差值产生一触发值,并当内块数量不大于第一临界值时,依据线段特征差值及移动向量产生触发值;图像画面处理模块判断触发值是否大于第二临界值,且当触发值大于第二临界值时,利用第一去交错算法进行线段的去交错处理,并当触发值不大于第二临界值时,利用第二去交错算法进行线段的去交错处理。Therefore, the adaptive image deinterlacing device according to the present invention includes a LineSegment feature difference calculation module, a motion vector calculation module, an IntraBlock quantity calculation module, and a Trigger Value generation module and an image frame processing module. Wherein, the line segment feature difference calculation module calculates the line segment feature difference of the line segment in the image picture, the motion vector calculation module calculates the motion vector of the macroblock (Macro Block) that contains the line segment in the image picture, and the inner block quantity calculation module calculates the motion vector of the line segment in the image picture The number of inner blocks, wherein the inner block represents a macroblock without a motion vector in it; the trigger value generation module judges whether the number of inner blocks is greater than the first critical value, and when the number of inner blocks is greater than the first critical value, according to the line segment feature difference value to generate a trigger value, and when the number of inner blocks is not greater than the first critical value, the trigger value is generated according to the line segment feature difference and the motion vector; the image frame processing module judges whether the trigger value is greater than the second critical value, and when the trigger value is greater than When the second critical value is reached, the first de-interlacing algorithm is used to perform de-interlacing processing of the line segments, and when the trigger value is not greater than the second critical value, the second de-interlacing algorithm is used to perform de-interlacing processing of the line segments.

另外,依本发明的自适应图像画面去交错方法包含计算图像画面中线段的线段特征差值,并且计算图像画面中包含线段的宏块的移动向量,以及计算图像画面中的内块数量,其中所述内块表示其内没有移动向量的宏块。接着,判断内块数量是否大于第一临界值,当内块数量大于第一临界值时,依据线段特征差值产生触发值,并且当内块数量不大于第一临界值时,依据线段特征差值及移动向量产生触发值。然后,判断触发值是否大于第二临界值,当触发值大于第二临界值时,利用第一去交错算法进行线段的去交错处理,并且当触发值不大于第二临界值时,利用第二去交错算法进行线段的去交错处理。In addition, the adaptive image frame de-interlacing method according to the present invention includes calculating the line segment characteristic difference value of the line segment in the image frame, calculating the motion vector of the macroblock containing the line segment in the image frame, and calculating the number of inner blocks in the image frame, wherein The inner blocks represent macroblocks that have no motion vectors within them. Next, it is judged whether the number of inner blocks is greater than the first critical value. When the number of inner blocks is greater than the first critical value, a trigger value is generated according to the line segment feature difference, and when the number of inner blocks is not greater than the first critical value, the trigger value is generated according to the line segment feature difference value and motion vector to generate the trigger value. Then, it is judged whether the trigger value is greater than the second critical value. When the trigger value is greater than the second critical value, the first de-interlacing algorithm is used to perform line segment de-interlacing processing, and when the trigger value is not greater than the second critical value, the second de-interlacing algorithm is used. The de-interlacing algorithm performs de-interlacing processing of line segments.

承上所述,依据本发明的自适应图像画面去交错方法及装置,包含一触发值产生模块以及一图像画面处理模块,能够针对图像画面中的线段特征差值、移动向量及内块数量,选择适当的去交错处理方法如摆动算法或编织算法,使得图像画面得以有较佳的显示效果。As mentioned above, according to the adaptive image frame de-interlacing method and device of the present invention, it includes a trigger value generating module and an image frame processing module, which can target the line segment feature difference value, motion vector and inner block number in the image frame, Selecting an appropriate de-interlacing method such as a wobble algorithm or a weaving algorithm enables the image to have a better display effect.

附图说明Description of drawings

图1A和图1B为一组示意图,显示公知编织处理去交错方法以及摆动处理去交错方法;FIG. 1A and FIG. 1B are a set of schematic diagrams showing a known weaving process de-interlacing method and a wobble process de-interlacing method;

图2为一示意图,显示依本发明较佳实施例的自适应图像画面去交错装置;FIG. 2 is a schematic diagram showing an adaptive image frame deinterlacing device according to a preferred embodiment of the present invention;

图3为一示意图,显示依本发明较佳实施例的自适应图像画面去交错方法;以及FIG. 3 is a schematic diagram showing an adaptive image frame de-interlacing method according to a preferred embodiment of the present invention; and

图4为一示意图,显示依本发明较佳实施例的自适应图像画面去交错方法中目前画面以及参考画面之中不同视场的像素值。FIG. 4 is a schematic diagram showing pixel values of different fields of view in a current frame and a reference frame in an adaptive image frame de-interlacing method according to a preferred embodiment of the present invention.

组件符号说明:Description of component symbols:

11:视频图像缓冲模块11: Video image buffer module

12:图像输出模块12: Image output module

13:图像显示模块13: Image display module

2:自适应图像画面去交错装置2: Adaptive image de-interlacing device

21:线段特征差值计算模块21: Line segment feature difference calculation module

22:移动向量计算模块22:Movement vector calculation module

23:内块数量计算模块23: Inner block quantity calculation module

24:触发值产生模块24: Trigger value generating module

25:图像画面处理模块25: Image screen processing module

S01-S12:自适应图像画面去交错方法S01-S12: Adaptive Image Deinterlacing Method

具体实施方式Detailed ways

以下将参照相关附图,说明依本发明较佳实施例的自适应图像画面去交错装置。An adaptive image frame deinterlacing device according to a preferred embodiment of the present invention will be described below with reference to the relevant drawings.

如图2所示,本发明较佳实施例的自适应图像画面去交错装置2包含一线段特征差值计算模块21、一移动向量计算模块22、一内块数量计算模块23、一触发值产生模块24以及一图像画面处理模块25。另外,自适应图像画面去交错装置2可包括一视频图像缓冲模块11以及一图像输出模块12,分别用以提供图像画面及输出去交错后所产生的输出图像,并且还可包括一图像显示模块13,其接收并显示图像输出模块12所产生的输出图像。当然,其它熟悉该项技术者所熟知的等效修改或变更,亦应包含于本发明的范畴,例如图像显示模块可以是包含于自适应图像画面去交错装置中(图中未显示)。As shown in Figure 2, the adaptive image frame de-interlacing device 2 of the preferred embodiment of the present invention includes a segment feature difference calculation module 21, a motion vector calculation module 22, an inner block number calculation module 23, a trigger value generation module 24 and an image frame processing module 25 . In addition, the adaptive image frame deinterlacing device 2 may include a video image buffer module 11 and an image output module 12, which are respectively used to provide the image frame and output the output image generated after deinterlacing, and may also include an image display module 13, which receives and displays the output image generated by the image output module 12. Of course, other equivalent modifications or changes known to those skilled in the art should also be included in the scope of the present invention, for example, the image display module can be included in an adaptive image frame deinterlacing device (not shown in the figure).

线段特征差值计算模块21计算图像画面中线段的线段特征差值,移动向量计算模块22计算图像画面中包含线段的宏块的移动向量,内块数量计算模块23计算图像画面中的内块数量,其中所述内块表示其内没有移动向量的宏块。触发值产生模块24判断内块数量是否大于第一临界值,且当内块数量大于第一临界值时,依据线段特征差值产生触发值,并当内块数量不大于第一临界值时,依据线段特征差值及移动向量产生触发值。图像画面处理模块25判断触发值是否大于第二临界值,且当触发值大于第二临界值时,利用第一去交错算法进行线段的去交错处理。其中第一去交错算法可为摆动(Bob)算法,并当触发值不大于第二临界值时,利用第二去交错算法进行线段的去交错处理,其中第二去交错算法可为编织(Weave)算法。The line segment feature difference calculation module 21 calculates the line segment feature difference of the line segment in the image picture, the motion vector calculation module 22 calculates the motion vector of the macroblock containing the line segment in the image picture, and the inner block quantity calculation module 23 calculates the inner block quantity in the image picture , where the inner blocks represent macroblocks that have no motion vectors within them. The trigger value generation module 24 judges whether the number of inner blocks is greater than the first critical value, and when the number of inner blocks is greater than the first critical value, generates a trigger value according to the line segment feature difference, and when the number of inner blocks is not greater than the first critical value, A trigger value is generated according to the feature difference of the line segment and the moving vector. The image frame processing module 25 judges whether the trigger value is greater than the second critical value, and when the trigger value is greater than the second critical value, uses the first de-interlacing algorithm to de-interlace the line segments. Wherein the first de-interlacing algorithm can be a swing (Bob) algorithm, and when the trigger value is not greater than the second critical value, utilize the second de-interlacing algorithm to carry out the de-interlacing processing of the line segment, wherein the second de-interlacing algorithm can be a weaving (Weave )algorithm.

以下将参考图3与图4所示,说明依本发明较佳实施例的自适应图像画面去交错方法,须注意,本方法可以实施于上述的自适应图像画面去交错装置2中,故以下说明将配合前述各模块及其组件符号。The method for adaptive image deinterlacing according to a preferred embodiment of the present invention will be described below with reference to FIG. 3 and FIG. The description will match the aforementioned modules and their component symbols.

依本发明较佳实施例的自适应图像画面去交错方法包含以下步骤S01至步骤S12。在步骤S01中,图像画面从视频图像缓冲模块11读取,其中图像画面可为一经译码后的MPEG图像画面,亦可为一P帧(Predicted frame)资料,且P帧资料内包含移动向量。The adaptive image frame de-interlacing method according to a preferred embodiment of the present invention includes the following steps S01 to S12. In step S01, the image frame is read from the video image buffer module 11, wherein the image frame can be a decoded MPEG image frame, or a P frame (Predicted frame) data, and the P frame data includes a motion vector .

在步骤S02中,线段特征差值计算模块读入参考画面以及目前画面的宏块内的像素数据后,选定一线段宽度值使得宏块所对应的图像范围中,每个扫描线内可再分为固定大小的线段。通过比较不同画面但相同线段位置的线段特征值,并以此比较结果作为线段特征差值。In step S02, after the line segment characteristic difference calculation module reads in the pixel data in the macroblock of the reference picture and the current picture, a line segment width value is selected so that in the image range corresponding to the macroblock, each scanning line can be recreated. Divided into line segments of fixed size. By comparing the line segment feature values in different pictures but at the same line segment position, and using the comparison result as the line segment feature difference value.

线段特征值(δi,n,m)可由画面内选定大小的线段中,计算两不同视场间相邻扫描线中,相对位置的像素值差绝对值,再将各个像素值差绝对值相加后以产生,其计算公式如式【1】所示:The line segment eigenvalues (δ i, n, m ) can be calculated from the line segment of the selected size in the screen to calculate the absolute value of the pixel value difference at the relative position in the adjacent scan lines between two different fields of view, and then the absolute value of each pixel value difference After adding to produce, its calculation formula is shown in formula [1]:

δδ ii ,, nno ,, mm == DifDif (( ii :: nno :: mm )) == ΣΣ kk == 11 jj || OddOdd (( nno )) __ LineSegLineSeg (( mm )) __ PixPix (( kk ))

- Even ( n + 1 ) _ LineSeg ( m ) _ Pix ( k ) 【1】 - even ( no + 1 ) _ LineSeg ( m ) _ Pix ( k ) 【1】

其中i表示目前画面,n表示画面的扫描线行数,m表示为此扫描线中第几个线段,j表示为线段的宽度(单位为像素),且其宽度具有可调整性;k表示像素在此线段的位置。Among them, i represents the current picture, n represents the number of scanning lines of the picture, m represents the number of line segments in this scanning line, j represents the width of the line segment (in pixels), and its width is adjustable; k represents pixels position on this line segment.

计算目前画面的线段特征值(δi,n,m)以及参考画面的线段特征值(δi-l,n,m)后,将目前画面以及参考画面的线段特征值二者之差取绝对值即是线段特征差值,线段特征差值(Δi,n,m)计算公式如式【2】所示:After calculating the line segment eigenvalues (δ i, n, m ) of the current picture and the line segment eigenvalues (δ il, n, m ) of the reference picture, the absolute value of the difference between the line segment eigenvalues of the current picture and the reference picture is is the characteristic difference of the line segment, and the calculation formula of the characteristic difference of the line segment (Δ i, n, m ) is shown in formula [2]:

Δi,n,m=|(δi,n,m)-(δi-l,nm)|                     【2】Δ i, n, m = |(δ i, n, m )-(δ il, nm )| 【2】

在目前画面以及参考画面之中,不同视场的像素值。当线段宽度为4时,目前画面的奇数视场中,其第一线段内第1至第4个像素值为(10,64,70,83),偶数视场中第一线段的第1至第4个像素值为(13,40,65,70),依式【1】可计算出目前画面第一个线段的特征值为45,计算过程如下式【3】所示。另外,参考画面的奇数视场中,其第一线段内第1至第4个像素值为(11,10,64,70),偶数视场中第一线段的第1至第4个像素值为(10,13,40,65),依式【1】可计算出参考画面第一个线段的特征值为33,计算过程如下式【4】所示。计算出目前画面以及前画面的线段特征值之后,依式【2】计算出线段特征差值为12,计算过程如下式【5】所示。Pixel values of different fields of view in the current frame and the reference frame. When the line segment width is 4, in the odd field of view of the current screen, the values of the 1st to 4th pixels in the first line segment are (10, 64, 70, 83), and the pixel values of the first line segment in the even field of view are The values of the 1st to 4th pixels are (13, 40, 65, 70). According to the formula [1], the feature value of the first line segment of the current screen can be calculated as 45. The calculation process is shown in the following formula [3]. In addition, in the odd-numbered field of view of the reference picture, the values of the first to fourth pixels in the first line segment are (11, 10, 64, 70), and the values of the first to fourth pixels in the first line segment in the even-numbered field of view are The pixel value is (10, 13, 40, 65), and the feature value of the first line segment of the reference picture can be calculated according to the formula [1] to be 33. The calculation process is shown in the following formula [4]. After calculating the line segment feature values of the current picture and the previous picture, calculate the line segment feature difference value of 12 according to formula [2]. The calculation process is shown in the following formula [5].

δi,n,m=∑(|10-13|+|64-40|+70-65|+|83-70|)=45     【3】δ i, n, m = ∑(|10-13|+|64-40|+70-65|+|83-70|)=45 【3】

δi-1,n,m=∑(|11-10|+|10-13|+|64-40|+|70-65|)=33   【4】δ i-1, n, m = ∑(|11-10|+|10-13|+|64-40|+|70-65|)=33 【4】

Δi,n,m=|(δi,n,m)-(δi-l,n,m)|=|45-33|=12     【5】Δ i, n, m =|(δ i, n, m )-(δ il, n, m )|=|45-33|=12 【5】

在步骤S02计算出线段特征差值后,在步骤S03中,移动向量计算模块读入宏块内的移动向量,与线段特征差值计算模块处理的线段位于同一宏块。由于移动向量值是记录同一时间中不同视场间的某一特定块的位移量(displacement),因此移动向量是以一具体的坐标值(coordinates value)来表示,并且依序读取块的移动向量值,就能重建画面。另外,块大小一般可为8×8像素或16×16像素,也可使用其它大小的像素来组成,其视执行去交错处理装置的性能及所提供的内存大小而调整。After the line segment characteristic difference is calculated in step S02, in step S03, the motion vector calculation module reads the motion vector in the macroblock, which is located in the same macroblock as the line segment processed by the line segment feature difference calculation module. Since the motion vector value is to record the displacement of a specific block between different fields of view at the same time, the motion vector is represented by a specific coordinate value (coordinates value), and the movement of the block is read sequentially Vector value, the picture can be reconstructed. In addition, the block size can generally be 8×8 pixels or 16×16 pixels, and pixels of other sizes can also be used to form blocks, which are adjusted depending on the performance of the device performing de-interlacing processing and the size of the memory provided.

在撷取到移动向量后,移动向量计算模块以移动向量的X轴长度与移动向量的Y轴长度相加,作为移动向量的一直角长度。例如,所撷取的移动向量值为(1,-32),此表示块在X轴正向位移1个像素,而在Y轴方向负向位移32个像素,此移动向量的直角长度为33,其计算如式【6】:After the motion vector is captured, the motion vector calculation module adds the length of the X axis of the motion vector to the length of the Y axis of the motion vector to obtain a rectangular length of the motion vector. For example, the extracted motion vector value is (1, -32), which means that the block is displaced by 1 pixel in the positive direction of the X axis, and 32 pixels in the negative direction of the Y axis direction. The length of the right angle of this motion vector is 33 , its calculation is as formula [6]:

                |1|+|-32|=33                       【6】|1|+|-32|=33【6】

在步骤S03计算出移动向量的直角长度后,进入步骤S04。在步骤S04中,内块数量计算模块计算一个完整的图像画面之中,所有被标记为内块的宏块的数量。若宏块被标记为内块,代表宏块内并无移动向量,所以宏块的图像内容不是由移动向量以及移动向量参考的块所构成,而是直接由宏块内记载的像素数据所构成,换句话说,图像画面中被标记为内块的宏块越多,图像画面与参考画面的相关性越少。After calculating the right-angle length of the motion vector in step S03, go to step S04. In step S04, the calculation module for the number of inner blocks calculates the number of all macroblocks marked as inner blocks in a complete image frame. If the macroblock is marked as an inner block, it means that there is no motion vector in the macroblock, so the image content of the macroblock is not composed of the motion vector and the block referenced by the motion vector, but directly composed of the pixel data recorded in the macroblock , in other words, the more macroblocks in the image frame marked as intra blocks, the less correlation the image frame has with the reference frame.

在步骤S05中,触发值产生模块是判断步骤S04之中,内块数量计算模块所计算的内块数量是否大于第一临界值。如果当内块数量大于第一临界值时则进入步骤S06,并在步骤S06中,依据线段特征差值产生一触发值;如果内块数量不大于第一临界值时则进入步骤S07,并在步骤S07之中,依据线段特征差值以及移动向量产生一触发值。执行步骤S06或是步骤S07产生触发值之后,进入步骤S08。In step S05, the trigger value generation module determines whether the number of inner blocks calculated by the inner block number calculation module in step S04 is greater than the first critical value. If the number of inner blocks is greater than the first critical value, then enter step S06, and in step S06, generate a trigger value according to the line segment characteristic difference; if the inner block number is not greater than the first critical value, then enter step S07, and In step S07, a trigger value is generated according to the feature difference of the line segment and the motion vector. After executing step S06 or step S07 to generate a trigger value, go to step S08.

在步骤S08中,图像画面处理模块判断在步骤S06或是步骤S07所产生的触发值是否大于第二临界值。若触发值大于第二临界值时,则进入步骤S09,并在步骤S09中,针对步骤S02中所处理的目前画面线段,利用第一去交错算法进行去交错处理,其中第一去交错算法可为摆动(Bob)算法;如果触发值不大于第二临界值时,则进入步骤S10,并在步骤S10之中,针对步骤S02中所处理的目前画面线段,利用第二去交错算法进行去交错处理,其中第二去交错算法可为一编织(Weave)算法。执行步骤S09或是步骤S10执行去交错算法后,进入步骤S11。In step S08, the image frame processing module determines whether the trigger value generated in step S06 or step S07 is greater than a second critical value. If the trigger value is greater than the second critical value, then enter step S09, and in step S09, for the current picture line segment processed in step S02, use the first de-interlacing algorithm to perform de-interlacing processing, wherein the first de-interlacing algorithm can be It is a swing (Bob) algorithm; if the trigger value is not greater than the second critical value, then enter step S10, and in step S10, utilize the second de-interlacing algorithm to perform de-interlacing for the current picture line segment processed in step S02 Processing, wherein the second de-interleaving algorithm may be a Weave algorithm. After executing step S09 or step S10 to execute the de-interleaving algorithm, go to step S11.

在步骤S11中,判断整个图像画面是否已经处理完毕,若有还未处理的线段以及图像则进入步骤S02继续处理,若已经处理完毕则进入步骤S12。In step S11, it is judged whether the entire image frame has been processed, if there are unprocessed line segments and images, proceed to step S02 to continue processing, and if the process has been completed, proceed to step S12.

在步骤S12中,结束去交错处理流程,并可将去交错后的图像输出至图像输出模块,以便将去交错后的图像构成一输出图像,进而输出至各种显示设备。In step S12, the de-interlacing processing flow ends, and the de-interlaced image can be output to the image output module, so that the de-interlaced image can be formed into an output image, and then output to various display devices.

综上所述,依据本发明的自适应图像画面去交错方法及装置,包含一触发值产生模块以及一图像画面处理模块,能够针对图像画面中的线段特征差值、移动向量及内块数量,选择适当的去交错处理方法如摆动算法或编织算法,使得图像画面得以有较佳的显示效果。In summary, according to the method and device for adaptive image frame de-interlacing of the present invention, it includes a trigger value generation module and an image frame processing module, which can target the line segment feature difference value, motion vector and inner block number in the image frame, Selecting an appropriate de-interlacing method such as a wobble algorithm or a weaving algorithm enables the image to have a better display effect.

以上所述仅为举例性,而非为限制性的。任何未脱离本发明的精神与范畴,而对其进行等效修改或变更,均应包含于所附的权利要求中。The above description is for illustration only, not for limitation. Any equivalent modification or change without departing from the spirit and scope of the present invention shall be included in the appended claims.

Claims (13)

1, a kind of adaptive image frame deinterlace method comprises:
Calculate the line segment feature difference of a line segment in the image frame;
Calculate the motion-vector that comprises the macro block of described line segment in the described image frame;
Calculate the interior number of blocks in the described image frame, wherein said interior piece represents not have in it macro block of motion-vector;
Judge that whether described interior number of blocks is greater than one first critical value;
When number of blocks is greater than described first critical value in described, produce a trigger value according to described line segment feature difference;
When number of blocks is not more than described first critical value in described, produce described trigger value according to described line segment feature difference and described motion-vector;
Judge that whether described trigger value is greater than one second critical value;
When described trigger value during greater than described second critical value, the deinterleave that utilizes first deinterlace algorithm to carry out described line segment is handled; And
When described trigger value was not more than described second critical value, the deinterleave that utilizes second deinterlace algorithm to carry out described line segment was handled.
2, adaptive image frame deinterlace method as claimed in claim 1, wherein said line segment feature difference are to deduct a corresponding reference picture line segment feature value by a present line segment feature value to be calculated.
3, adaptive image frame deinterlace method as claimed in claim 1, wherein said motion-vector comprises the angle length of described motion-vector, and the angle length of described motion-vector is the Y-axis length that the X-axis length of described motion-vector adds the above motion-vector.
4, adaptive image frame deinterlace method as claimed in claim 1, the quantity of piece in all macro blocks that wherein said interior number of blocks is described image frame are marked as.
5, adaptive image frame deinterlace method as claimed in claim 1, wherein said image frame are a mpeg image picture or are a P frame data.
6, adaptive image frame deinterlace method as claimed in claim 1, wherein said first deinterlace algorithm are a swing algorithm, and described second deinterlace algorithm is a braiding algorithm.
7, adaptive image frame deinterlace method as claimed in claim 1 more comprises:
Handle formation one output image according to the deinterleave of described line segment.
8, a kind of adaptive image frame deinterlace device comprises:
One line segment feature difference calculating module, a line segment feature difference of its computed image picture middle conductor;
One motion-vector computing module, it calculates a motion-vector of the macro block that comprises described line segment in the described image frame;
Number of blocks computing module in one, it calculates the interior number of blocks in the described image frame, and wherein said interior piece represents not have in it macro block of motion-vector;
One trigger value generation module, it judges that whether described interior number of blocks is greater than one first critical value, and when number of blocks is greater than described first critical value in described, produce a trigger value according to described line segment feature difference, and when number of blocks is not more than described first critical value in described, produce described trigger value according to described line segment feature difference and described motion-vector; And
One image frame processing module, it judges that whether described trigger value is greater than one second critical value, and when described trigger value during greater than described second critical value, the deinterleave that utilizes first deinterlace algorithm to carry out described line segment is handled, and when described trigger value was not more than described second critical value, the deinterleave that utilizes second deinterlace algorithm to carry out described line segment was handled.
9, adaptive image frame deinterlace device as claimed in claim 8, wherein said line segment feature difference calculating module are to deduct a corresponding reference picture line segment feature value with a present line segment feature value to calculate described line segment feature difference.
10, adaptive image frame deinterlace device as claimed in claim 8, wherein said motion-vector computing module are the degree of angular length always with the described motion-vector of Y-axis length computation of the X-axis length of described motion-vector and described motion-vector.
11, adaptive image frame deinterlace device as claimed in claim 8, the quantity of piece in all macro blocks that wherein said interior number of blocks computing module calculates described image frame are marked as.
12, adaptive image frame deinterlace device as claimed in claim 8, wherein said image frame are a mpeg image picture or are a P frame data.
13, adaptive image frame deinterlace device as claimed in claim 8 more comprises:
One image output module, its deinterleave according to described line segment is handled to constitute an output image.
CNB2004101041912A 2004-12-30 2004-12-30 Adaptive image frame deinterlacing device and method Expired - Lifetime CN1317894C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004101041912A CN1317894C (en) 2004-12-30 2004-12-30 Adaptive image frame deinterlacing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004101041912A CN1317894C (en) 2004-12-30 2004-12-30 Adaptive image frame deinterlacing device and method

Publications (2)

Publication Number Publication Date
CN1622615A CN1622615A (en) 2005-06-01
CN1317894C true CN1317894C (en) 2007-05-23

Family

ID=34766889

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004101041912A Expired - Lifetime CN1317894C (en) 2004-12-30 2004-12-30 Adaptive image frame deinterlacing device and method

Country Status (1)

Country Link
CN (1) CN1317894C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100471232C (en) * 2007-06-15 2009-03-18 威盛电子股份有限公司 Digital dynamic image de-interlacing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273742A (en) * 1998-07-16 2000-11-15 松下电器产业株式会社 Video display apparatus and video display method
WO2001015442A1 (en) * 1999-08-24 2001-03-01 Rearden Steel, Inc. System and method for performing interlaced-to-progressive conversion using interframe motion data
EP1139659A2 (en) * 2000-03-27 2001-10-04 Lucent Technologies Inc. Method and apparatus for deinterlacing video images
CN1477870A (en) * 2002-07-25 2004-02-25 ���ǵ�����ʽ���� Deinterlacing device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273742A (en) * 1998-07-16 2000-11-15 松下电器产业株式会社 Video display apparatus and video display method
WO2001015442A1 (en) * 1999-08-24 2001-03-01 Rearden Steel, Inc. System and method for performing interlaced-to-progressive conversion using interframe motion data
EP1139659A2 (en) * 2000-03-27 2001-10-04 Lucent Technologies Inc. Method and apparatus for deinterlacing video images
CN1477870A (en) * 2002-07-25 2004-02-25 ���ǵ�����ʽ���� Deinterlacing device and method

Also Published As

Publication number Publication date
CN1622615A (en) 2005-06-01

Similar Documents

Publication Publication Date Title
CN100348035C (en) Method and equipment for calculating kinematical vector
CN1324890C (en) Adaptive deinterlacing method and device for dynamic images
CN1265633C (en) Interlacing-removing device and method
US6118488A (en) Method and apparatus for adaptive edge-based scan line interpolation using 1-D pixel array motion detection
CN1207906C (en) Interlacing-removing device and method
CN1484914A (en) Interface continuous video signal conversion method and device
CN101064817A (en) Converting device and converting method of video signals
CN1783995A (en) Frame rate conversion device, image display apparatus, and method of converting frame rate
CN1717920A (en) Detection of motion sequence patterns
CN1620109A (en) De-interlacing apparatus with a noise reduction/removal device
CN1509065A (en) Image signal format detection device and method
CN1706189A (en) Image processing unit with fall-back
CN1510915A (en) Motion detection device and method
WO2000011612A1 (en) Methods and apparatus for reducing the amount of buffer memory required for decoding mpeg data and for performing scan conversion
CN1317894C (en) Adaptive image frame deinterlacing device and method
CN1694501A (en) Inverse Film Mode Extrapolation
CN1758743A (en) Use the image processing equipment and the method thereof of shake mapping
CN1167261C (en) Method and device for converting video data frame rate
CN1103090C (en) Picture processing apparatus and processing method
US7714932B2 (en) Apparatus and method for adaptively de-interlacing image frame
CN1529500A (en) 3D Video Format Conversion Method Based on Motion Adaptive and Edge Protection
EP1418754A2 (en) Progressive conversion of interlaced video based on coded bitstream analysis
CN1317893C (en) De-interlacing method and de-interlacing algorithm generation method
JP2005318623A (en) Film mode extrapolation method, film mode detector and motion compensator
CN1209919C (en) Realizing method of digitized processing TV interlaced scanning format conversion

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070523