CN1662035A - Film mode detection device and related method for displacement vector estimation - Google Patents

Film mode detection device and related method for displacement vector estimation Download PDF

Info

Publication number
CN1662035A
CN1662035A CN 200410006623 CN200410006623A CN1662035A CN 1662035 A CN1662035 A CN 1662035A CN 200410006623 CN200410006623 CN 200410006623 CN 200410006623 A CN200410006623 A CN 200410006623A CN 1662035 A CN1662035 A CN 1662035A
Authority
CN
China
Prior art keywords
field
displacement
film mode
value
judgment
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.)
Granted
Application number
CN 200410006623
Other languages
Chinese (zh)
Other versions
CN100426834C (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CNB2004100066236A priority Critical patent/CN100426834C/en
Publication of CN1662035A publication Critical patent/CN1662035A/en
Application granted granted Critical
Publication of CN100426834C publication Critical patent/CN100426834C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a device and a method for judging a film mode by utilizing displacement estimation, which mainly adopt a displacement estimation mode to estimate the displacement and change of each target pixel in another field (such as a previous field or a next field) by taking each pixel as a target pixel in each field of video data so as to judge whether the field has the displacement, and judge whether the video data is in a film mode according to whether the field has the displacement or not.

Description

位移向量估计的影片模式检测 装置及相关方法Film mode detection apparatus and related method for displacement vector estimation

技术领域technical field

本发明涉及一种影片模式检测的装置及其方法,特别涉及一种利用位移预估(motion estimation)以判断出一影片模式(film mode)的装置及其方法。The present invention relates to a device and method for film mode detection, in particular to a device and method for judging a film mode by using motion estimation.

背景技术Background technique

传统的交错式扫描(interlaced scanning)技术中,欲显示出一影片的每一个影像帧时,实际上是将组成该帧的二个图场作交错显示,此方式是利用到人眼的视觉暂留作用,因此不会感到有任何的异状。该二个图场,其中一个是由奇数扫描线所组成的奇图场(oddfield),另一个则是由偶数扫描线所组成的偶图场(even field)。而新近的循序式扫描(progressivescarning)技术,又称为非交错式扫描(non-interlaced scanning),则是先将两个属于同一帧的图场先合并成为一个帧,再以加倍的水平扫描频率依序扫描该帧,如此一来,画面的品质与稳定度都会大幅提升。In traditional interlaced scanning (interlaced scanning) technology, when each image frame of a movie is to be displayed, the two image fields that make up the frame are actually interlaced. It stays put, so you won't feel any abnormality. Of the two fields, one is an odd field composed of odd scan lines, and the other is an even field composed of even scan lines. The recent progressive scanning technology, also known as non-interlaced scanning, combines two fields belonging to the same frame into one frame, and then doubles the horizontal scanning frequency. The frames are scanned sequentially, so that the quality and stability of the picture will be greatly improved.

正确的检测出视讯数据的各图场间彼此的关系,并依此判断出该视讯数据是否为一影片模式(举例来说,其是一3-2 pull down影片模式,或是一2-2 pull down影片模式),并施以正确的去交错化(例如合并两个图场),如此的处理是必要的。Correctly detect the relationship between each image field of the video data, and judge whether the video data is a video mode (for example, it is a 3-2 pull down video mode, or a 2-2 pull down movie mode) and apply proper de-interlacing (such as merging two fields), such processing is necessary.

有关已知技术请参考美国专利第4982280号、第6580463号。Please refer to US Patent No. 4982280 and No. 6580463 for related known technologies.

发明内容Contents of the invention

因此本发明的目的在于提供一种利用位移预估以判断出一种影片模式的影片模式检测的装置及其方法。Therefore, the object of the present invention is to provide a device and method for detecting a film mode by using displacement estimation to determine a film mode.

本发明提供一种利用位移预估以判断出一种影片模式的方法及相关装置,该方法包含有:进行至少一位移预估与判断步骤,以便在该视讯数据中接收两图场分别作为一第一图场与一第二图场;进行一目标像素位移预估与判断步骤,以在该第一图场内划分出至少一目标像素区域,并针对每一目标像素区域作位移预估与判断,以根据位移预估的结果提供对应于该目标像素区域的一第一判断值;再进行一图场位移判断步骤,以依据各目标像素区域对应的第一判断值,以产生相对应于该第一图场的一第二判断值。在进行各个位移预估与判断步骤之后,依据以该视讯数据中的不同图场分别作为输入的第一图场而得到的相对应的第二判断值,判断该视讯数据是否为一影片模式,以及该第一图场该与何图场合并。该影片模式检测装置包含有:至少一位移预估与判断模块,该位移预估与判断模块包含有:一像素位移预估单元,接收该视讯数据中的一第一图场及一第二图场,并依据该第一图场的一目标像素区域,与该第二图场中的多个像素区域提供对应于该目标像素区域的一位移向量;一图场位移判断单元,耦合于该像素位移预估单元,依据该第一图场中的相对应的位移向量,产生相对应于该第一图场的一第二判断值;以及一影片模式检测器,耦合于该至少一位移预估与判断模块,接收该至少一第二判断值,产生一判断结果。The present invention provides a method and related device for judging a film mode by using displacement estimation. The method includes: performing at least one displacement estimation and judging step, so as to receive two image fields in the video data as one respectively. A first image field and a second image field; performing a step of target pixel displacement estimation and judgment, to divide at least one target pixel area in the first image field, and perform displacement estimation and determination for each target pixel area Judging, to provide a first judgment value corresponding to the target pixel area according to the result of the displacement estimation; and then performing a field displacement judgment step, to generate a corresponding to the first judgment value according to each target pixel area A second judgment value of the first field. After performing each displacement estimation and judging steps, according to the corresponding second judging values obtained by taking different fields in the video data as input first fields respectively, it is judged whether the video data is a film mode, And which map should be merged with the first field. The film mode detection device includes: at least one displacement estimation and judgment module, the displacement estimation and judgment module includes: a pixel displacement estimation unit, which receives a first image field and a second image in the video data field, and provide a displacement vector corresponding to the target pixel area according to a target pixel area of the first image field and a plurality of pixel areas in the second image field; a field displacement judgment unit coupled to the pixel A displacement estimation unit generates a second judgment value corresponding to the first field according to a corresponding displacement vector in the first field; and a film mode detector coupled to the at least one displacement estimation and the judging module receives the at least one second judging value and generates a judging result.

本发明能更正确地判断出一视讯数据所属的影片模式,并能进一步选择出正确的去交错化的方式,以正确地处理视讯数据。The present invention can more accurately determine the video mode to which a video data belongs, and can further select a correct de-interlacing method to correctly process the video data.

附图说明Description of drawings

图1为本发明的影片模式检测装置的一实施例的功能方块图。FIG. 1 is a functional block diagram of an embodiment of the film mode detection device of the present invention.

图2、图3、图4与图5为图1中影片模式检测装置以本发明的技术精神进行影片模式检测的流程图。FIG. 2 , FIG. 3 , FIG. 4 and FIG. 5 are flow charts of the film mode detection device in FIG. 1 performing film mode detection according to the technical spirit of the present invention.

附图符号说明Description of reference symbols

200:影片模式检测装置           10、20、30:位移预估与判断模块200: Film mode detection device 10, 20, 30: Displacement estimation and judgment module

40:影片模式检测器              11、21、31:像素位移预估单元40: Movie mode detector 11, 21, 31: Pixel displacement estimation unit

12、22、32:图场位移判断单元    13、23、33:像素位移预估器12, 22, 32: Image field displacement judgment unit 13, 23, 33: Pixel displacement estimator

14、16、24、26、34、36:判断器  15、25、35:图场位移预估器14, 16, 24, 26, 34, 36: Judgment 15, 25, 35: Image field displacement estimator

17、27、37:计数器              61、62、63、64、65、66:阈值17, 27, 37: Counter 61, 62, 63, 64, 65, 66: Threshold

具体实施方式Detailed ways

请参阅图1,图1为本发明的影片模式检测装置200一实施例的功能方块图。一般来说,交错式扫描的视讯数据是由各个图场串连而成,而本发明影片模式检测装置200就是一种利用图场间位移预估(motion estimation)以判断输入的视讯数据的影片模式(film mode)。如图1所示,影片模式检测装置200包含有三个位移预估与判断模块10、20及30,与一影片模式检测器40。其中,各个位移预估与判断模块10、20及30的构造实质上相同。以位移预估与判断模块10为例:该位移预估与判断模块10包含有一像素位移预估单元11与一图场位移判断单元12;像素位移预估单元11的输入端可接收两个图场为一第一图场与一第二图场,并在第一图场中划分出多个目标像素区域,以针对该第一图场的各个目标像素区域进行位移预估与判断,预估该目标像素区域在该第二图场的位移与变化,并根据位移预估的结果提供对应于该目标像素区域的一第一判断值D1。在本发明的较佳实施例中,目标像素区域中可以仅包含有一个像素,故可简称为目标像素。Please refer to FIG. 1 . FIG. 1 is a functional block diagram of an embodiment of a video mode detection device 200 of the present invention. Generally speaking, interlaced scanning video data is formed by concatenating various video fields, and the video mode detection device 200 of the present invention is a video that uses motion estimation between video fields to determine the input video data. mode (film mode). As shown in FIG. 1 , the film mode detection device 200 includes three displacement estimation and judgment modules 10 , 20 and 30 , and a film mode detector 40 . Wherein, the structures of the displacement estimation and judging modules 10 , 20 and 30 are substantially the same. Take the displacement estimation and determination module 10 as an example: the displacement estimation and determination module 10 includes a pixel displacement estimation unit 11 and a field displacement determination unit 12; the input end of the pixel displacement estimation unit 11 can receive two images The fields are a first image field and a second image field, and a plurality of target pixel areas are divided in the first image field, so as to perform displacement estimation and judgment for each target pixel area of the first image field, and estimate Displacement and change of the target pixel area in the second image field, and provide a first judgment value D 1 corresponding to the target pixel area according to the result of displacement estimation. In a preferred embodiment of the present invention, the target pixel area may contain only one pixel, so it may be referred to as the target pixel for short.

为实现像素位移预估单元11的功能,其内设有一像素位移预估器13与一第一判断器14。像素位移预估器13用以对于该第一图场的各个目标像素作位移预估,预估该目标像素会落在该第二图场内的某个位置,而得到一相对应的位移预估结果。该位移预估结果可包含有一位移向量(motion vector)MV_1,以及一相似度S1。第一判断器14,耦合于像素位移预估器13。第一判断器14可用一第一阈值(threshold)61实作,用以依据像素位移预估器13输出的位移向量MV_1及相似度S1与一第一临界值之间的大小关系,以产生一相对应于该目标像素的第一判断值D1,用来代表该目标像素有无位移,若该位移向量MV_1的值为0,而该相似度S1大于该第一临界值时,则表示该目标像素没有位移,此时该第一判断值D1的值为0;否则即表示该目标像素有位移,而该第一判断值D1的值就应设为1。In order to realize the function of the pixel displacement estimation unit 11 , a pixel displacement estimation unit 13 and a first determination unit 14 are provided therein. The pixel displacement estimator 13 is used to perform displacement estimation for each target pixel in the first image field, and estimate that the target pixel will fall in a certain position in the second image field, and obtain a corresponding displacement prediction Estimate the result. The displacement prediction result may include a motion vector MV_1 and a similarity S 1 . The first determiner 14 is coupled to the pixel displacement estimator 13 . The first determiner 14 can be implemented with a first threshold (threshold) 61, which is used to generate the magnitude relationship between the displacement vector MV_1 and the similarity S1 output by the pixel displacement estimator 13 and a first threshold. A first judgment value D 1 corresponding to the target pixel is used to represent whether the target pixel has been displaced. If the value of the displacement vector MV_1 is 0 and the similarity S 1 is greater than the first critical value, then It means that the target pixel has no displacement, and the value of the first judgment value D1 is 0; otherwise, it means that the target pixel has displacement, and the value of the first judgment value D1 should be set to 1.

至于图场位移判断单元12,则耦合于像素位移预估单元11,其可综合该第一图场中全部各个目标像素所分别对应的第一判断值D1,以产生相对应于该第一图场的一第二判断值D2。为实现上述功能,图场位移判断单元12中可设有一单张图场信息(one field information)装置15与一第二判断器16。图场位移预估器15包含有一第一计数器17,用以依据该第一图场中每一目标像素各自相对应的第一判断值D1,以累计产生出相对应于该第一图场的一第一计数值C1;而该第一计数值C1即代表该第一图场中有位移的目标像素的个数。举例而言,若该第一图场的一目标像素的第一判断值D1为1,则将该第一计数值C1加1;若该第一判断值D1为0,则表示该目标像素无位移,所以该第一计数值C1的值不变。根据此运作原理,即可针对依序对第一图场中每一目标像素累计该第一计数值C1As for the field displacement judging unit 12, it is coupled to the pixel displacement estimation unit 11, which can synthesize the first judgment values D1 corresponding to all the target pixels in the first field to generate the corresponding first judgment value D1. A second judgment value D 2 of the field. In order to realize the above functions, the field shift judging unit 12 may be provided with a one field information device 15 and a second judging unit 16 . The field displacement estimator 15 includes a first counter 17, which is used to accumulatively generate the corresponding first judgment value D1 corresponding to each target pixel in the first field. A first count value C 1 ; and the first count value C 1 represents the number of displaced target pixels in the first field. For example, if the first judgment value D1 of a target pixel in the first field is 1, then add 1 to the first count value C1; if the first judgment value D1 is 0, it means that the There is no displacement of the target pixel, so the value of the first count value C1 remains unchanged. According to this operating principle, the first count value C 1 can be accumulated sequentially for each target pixel in the first field.

第二判断器16,耦合于图场位移预估器15,用以依据图场位移预估器15输出的该第一计数值C1,以产生相对应于该第一图场的第二判断值D2。第二判断器16可用一第二阈值62实作,用以比较该第一计数值C1与一第二临界值,以产生一相对应于该第一图场的该第二判断值D2。该第二判断值D2代表该第一图场有无图场位移,当该第二判断值D2的值大于该第二临界值时,表示该第一图场有发生图场位移,所以将该第二判断值D2的值设为1,反之则表示该第一图场没有发生图场位移,所以可将该第二判断值D2的值设为0。The second judging unit 16 is coupled to the field displacement estimator 15, and is used to generate a second judgment corresponding to the first field according to the first count value C 1 output by the field displacement estimator 15 Value D 2 . The second judging unit 16 can be implemented with a second threshold 62 for comparing the first count value C1 with a second critical value to generate a second judging value D2 corresponding to the first field . The second judgment value D2 represents whether there is field displacement in the first field, and when the value of the second judgment value D2 is greater than the second critical value, it means that there is field displacement in the first field, so The value of the second judgment value D 2 is set to 1, otherwise, it means that there is no field shift in the first field, so the value of the second judgment value D 2 can be set to 0.

至于位移预估与判断模块20与30内含的所有装置及功能,基本上皆相仿于在该位移预估与判断模块10里相对应的所有装置及功能。整体来说,影片模式检测装置200即是在该视讯数据中接收三个相邻的图场分别作为前、中、后的三个图场:Fn-1、Fn及Fn+1。如图1中所示意的,该位移预估与判断模块10是以图场Fn、Fn-1分别作为输入的第一图场及第二图场,针对图场Fn中各目标像素产生出对应的第一判断值D1,并根据各个第一判断值D1产生出一第二判断值D2。同理,该位移预估与判断模块20是以图场Fn、Fn+1分别作为输入的第一图场及第二图场,以针对图场Fn中各目标像素产生出对应的第三判断值D3,并根据各个第三判断值D3产生出一第四判断值D4。至于该位移预估与判断模块30,则是以图场Fn-1、Fn+1分别作为输入的第一图场及第二图场,以针对图场Fn-1中各目标像素产生出对应的第五判断值D5,并根据各个第五判断值D5累计、比较而得出一第六判断值D6All devices and functions included in the displacement estimation and judgment modules 20 and 30 are basically similar to all corresponding devices and functions in the displacement estimation and judgment module 10 . In general, the video mode detection device 200 receives three adjacent fields in the video data as three front, middle and back fields: F n-1 , F n and F n+1 . As shown in Fig. 1, the displacement estimation and judging module 10 uses the first image field and the second image field as inputs of the image fields Fn and Fn -1 respectively, and targets each target pixel in the image field Fn A corresponding first judgment value D 1 is generated, and a second judgment value D 2 is generated according to each first judgment value D 1 . Similarly, the displacement estimation and judging module 20 takes the first image field and the second image field respectively as inputs of the image fields Fn and Fn +1 , so as to generate corresponding pixel values for each target pixel in the image field Fn . The third judgment value D 3 , and a fourth judgment value D 4 is generated according to each third judgment value D 3 . As for the displacement estimation and judgment module 30, the first image field and the second image field are respectively input with the image fields Fn -1 and Fn +1 , so as to target each target pixel in the image field Fn -1 A corresponding fifth judgment value D 5 is generated, and a sixth judgment value D 6 is obtained by accumulating and comparing each fifth judgment value D 5 .

影片模式检测器40,耦合于位移预估与判断模块10、20与30,用以依据该第二、第四与第六判断值D2、D4与D6,以产生一第七判断值D7与一第八判断值D8。该第七判断值D7代表图场Fn所属的视讯数据是否为一影片模式,举例来说,其是为一3-2 pull down影片模式,或是一2-2 pull down影片模式。而该第八判断值代表图场Fn是否应该与图场Fn-1或是图场Fn+1合并。The film mode detector 40, coupled to the displacement estimation and judgment modules 10, 20 and 30, is used to generate a seventh judgment value according to the second, fourth and sixth judgment values D 2 , D 4 and D 6 D 7 and an eighth judgment value D 8 . The seventh judgment value D7 represents whether the video data to which the field Fn belongs is a video mode, for example, it is a 3-2 pull down video mode or a 2-2 pull down video mode. The eighth judgment value represents whether the field Fn should be merged with the field Fn -1 or the field Fn +1 .

以上为本发明的较佳实施例,另外,在本发明的另一实施状态下,可以仅用一个位移预估与判断模块10来配合影片模式检测器40,而输入为该第一图场Fn与该第二图场Fn-1,如此亦可以做到判断该第一图场Fn所属的视讯数据是否为一影片模式,以及该第一图场Fn是否应该与该第二图场Fn-1合并。The above is a preferred embodiment of the present invention. In addition, in another implementation state of the present invention, only one displacement estimation and judgment module 10 can be used to cooperate with the film mode detector 40, and the input is the first image field F n and the second image field Fn -1 , so it can also be judged whether the video data belonging to the first image field Fn is a film mode, and whether the first image field Fn should be connected with the second image field Field Fn -1 merges.

图2、图3、图4与图5为图1中装置以本发明的技术精神进行影片模式检测的流程图。图2中的三个程序请分别参考图3、图4与图5。本流程方法是利用位移预估以判断一视讯数据是否符合特定影片模式的方法。本流程方法由该视讯数据中接收三个相邻的图场分别作为前、中、后的图场Fn-1、Fn及Fn+1。如图2所示,在步骤200之后,步骤202至步骤216、步骤302至步骤316以及步骤402至步骤416分别用来实现一位移预估与判断步骤;进行完步骤216、316及416之后,即可进行至步骤218及220,完成本方法的流程。一位移预估与判断步骤所包含的步骤如下:FIG. 2 , FIG. 3 , FIG. 4 and FIG. 5 are flow charts of the device in FIG. 1 performing film mode detection according to the technical spirit of the present invention. For the three programs in Figure 2, please refer to Figure 3, Figure 4 and Figure 5 respectively. The flow method is a method for judging whether a video data conforms to a specific video mode by using displacement estimation. The flow method receives three adjacent image fields from the video data as the front, middle, and rear image fields F n-1 , F n and F n+1 respectively. As shown in Figure 2, after step 200, step 202 to step 216, step 302 to step 316 and step 402 to step 416 are respectively used to realize a displacement estimation and judgment step; after performing steps 216, 316 and 416, Then proceed to steps 218 and 220 to complete the flow of the method. A displacement estimation and judgment step includes the following steps:

步骤200:开始进行本发明的检测流程;Step 200: start the detection process of the present invention;

步骤202:在该视讯数据中接收图场Fn与图场Fn-1为其输入;Step 202: Receive a field F n and a field F n-1 in the video data as its input;

步骤204:图场Fn内有M1个像素,将该M1个像素依序编号;而N1为目前选定的一目标像素的编号,表示目前的目标像素为图场Fn内的第N1个像素;设定N1=1;Step 204: There are M 1 pixels in the image field F n , and the M 1 pixels are numbered sequentially; and N 1 is the number of a currently selected target pixel, indicating that the current target pixel is in the image field F n N 1th pixel; set N 1 =1;

步骤206:针对该目标像素作位移预估,预估该目标像素会落在图场Fn-1内的某个位置,以得到一对应的位移预估结果,该位移预估结果包含有对应的一位移向量MV_1以及一相似度S1Step 206: Perform displacement estimation for the target pixel, and estimate that the target pixel will fall at a certain position in the field Fn -1 , so as to obtain a corresponding displacement estimation result, the displacement estimation result includes a corresponding A displacement vector MV_1 and a similarity S 1 of ;

步骤208:依据每一目标像素对应的该位移向量MV_1及该相似度S1与一第一临界值间的大小关系,以产生出相对应于该目标像素的第一判断值D1,该第一判断值D1代表该目标像素有无位移;Step 208: Generate a first judgment value D 1 corresponding to the target pixel according to the magnitude relationship between the displacement vector MV_1 corresponding to each target pixel and the similarity S 1 and a first critical value, the second judgment value D 1 corresponding to the target pixel A judgment value D1 represents whether the target pixel is displaced;

步骤210:进行一单张图场信息步骤,依据图场Fn中每一目标像素各自相对应的第一判断值D1,以累计产生出相对应于图场Fn的第一计数值C1,以代表图场Fn中有位移的目标像素的个数;Step 210: Perform a single image field information step, according to the first judgment value D 1 corresponding to each target pixel in the image field Fn , to cumulatively generate the first count value C corresponding to the image field Fn 1 to represent the number of displaced target pixels in the field Fn ;

步骤212:判断该目标像素是否为图场Fn内的最后一个像素,即是N1是否等于M1;若是,则进行至步骤216;若否,则进行至步骤214;Step 212: Determine whether the target pixel is the last pixel in the field F n , that is, whether N 1 is equal to M 1 ; if yes, proceed to step 216; if not, proceed to step 214;

步骤214:将N1的值加1,成为新的N1值,而目前的目标像素为图场Fn内的第N1个像素;进行至步骤206;Step 214: Add 1 to the value of N1 to become a new N1 value, and the current target pixel is the N1th pixel in the field Fn ; proceed to step 206;

步骤216:根据该第一计数值C1与一第二临界值间的大小关系,以产生出相对应于图场Fn的第二判断值D2,该第二判断值D2系代表图场Fn有无图场位移;Step 216: According to the size relationship between the first count value C 1 and a second critical value, a second judgment value D 2 corresponding to the image field Fn is generated, and the second judgment value D 2 is a representative image Whether field F n has image field displacement;

以上的步骤206到步骤208可用来实现一目标像素位移预估与判断步骤,而步骤210到步骤216则可实现一图场位移判断步骤。The above steps 206 to 208 can be used to realize a target pixel displacement estimation and judgment step, while steps 210 to 216 can realize a field displacement judgment step.

至于步骤302至步骤316皆相仿于步骤202至步骤216,步骤302所接收的输入为图场Fn与图场Fn+1。步骤402至步骤416亦皆相仿于步骤202至步骤216,步骤402所接收的输入为图场Fn-1与图场Fn+1。此影片模式检测的流程的后续步骤如下:Steps 302 to 316 are similar to steps 202 to 216 , and the inputs received in step 302 are field F n and field F n+1 . Steps 402 to 416 are also similar to steps 202 to 216 , and the inputs received in step 402 are field F n−1 and field F n+1 . The next steps in this film mode detection process are as follows:

步骤218:根据该第二判断值D2、该第四判断值D4与该第六判断值D6,产生一判断结果,该判断结果包含有一第七判断值D7与一第八判断值D8。该第七判断值D7系代表图场Fn所属的视讯数据是否为一影片模式,举例来说,其是为一3-2 pull down影片模式,或是一2-2 pull down影片模式。而该第八判断值D8代表图场Fn是否应该与图场Fn-1或是图场Fn+1合并;以及Step 218: Generate a judgment result according to the second judgment value D 2 , the fourth judgment value D 4 and the sixth judgment value D 6 , the judgment result includes a seventh judgment value D 7 and an eighth judgment value D8 . The seventh judgment value D7 represents whether the video data to which the field Fn belongs is a video mode, for example, it is a 3-2 pull down video mode or a 2-2 pull down video mode. And the eighth judgment value D8 represents whether the field Fn should be merged with the field Fn -1 or the field Fn +1 ; and

步骤220:结束。Step 220: end.

以上为本发明的较佳实施例,然而在本发明的另一种实施状况下,也可以若仅使用一位移预估与判断步骤,即是步骤202至步骤216,配合步骤200、步骤218与步骤220,而输入为图场Fn与图场Fn-1如此亦可以做到判断图场Fn所属的视讯数据是否为一影片模式,以及图场Fn是否应该与图场Fn-1合并。The above is a preferred embodiment of the present invention, but in another implementation situation of the present invention, it is also possible to use only one displacement estimation and judgment step, that is, step 202 to step 216, in conjunction with step 200, step 218 and Step 220, and the input is the picture field F n and the picture field F n-1 so it can also be done to judge whether the video data to which the picture field F n belongs is a film mode, and whether the picture field F n should be the same as the picture field F n- 1 to merge.

相较于已知技术,本发明能更正确地判断出一视讯数据所属的影片模式,并能进一步选择出正确的去交错化的方式,以正确地处理视讯数据。Compared with the prior art, the present invention can more accurately determine the video mode to which a video data belongs, and can further select the correct de-interlacing method to correctly process the video data.

以上所述仅为本发明的较佳实施例,凡依本发明的权利要求所做的均等变化与修饰,皆应属本发明专利的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the patent of the present invention.

Claims (10)

1.一种用以检测一视讯数据的一影片模式的影片模式检测装置,该视讯数据为一由多个图场所组成,该影片模式检测装置包含有:1. A film mode detection device for detecting a film mode of a video data, the video data is composed of a plurality of image fields, and the film mode detection device comprises: 至少一位移预估与判断模块,该位移预估与判断模块包含有:At least one displacement estimation and judgment module, the displacement estimation and judgment module includes: 一像素位移预估单元,接收该视讯数据中的一第一图场及一第二图场,并依据该第一图场的一目标像素区域,与该第二图场中的多个像素区域提供对应于该目标像素区域的一位移向量;A pixel displacement estimation unit, receiving a first field and a second field in the video data, and based on a target pixel area of the first field and a plurality of pixel areas in the second field providing a displacement vector corresponding to the target pixel area; 一图场位移判断单元,耦合于该像素位移预估单元,依据该第一图场中的相对应的位移向量,产生相对应于该第一图场的一第二判断值;以及a field displacement judging unit, coupled to the pixel displacement estimation unit, to generate a second judging value corresponding to the first field according to the corresponding displacement vector in the first field; and 一影片模式检测器,耦合于该至少一位移预估与判断模块,接收该至少一第二判断值,产生一判断结果。A film mode detector is coupled to the at least one displacement estimation and judging module, receives the at least one second judging value, and generates a judging result. 2.如权利要求1所述的影片模式检测装置,其中该像素位移预估单元包含有:2. The film mode detection device as claimed in claim 1, wherein the pixel displacement estimation unit comprises: 一像素位移预估器,依据该第一图场的一目标像素区域与该第二图场中的多个像素区域,得到一位移向量。A pixel displacement estimator obtains a displacement vector according to a target pixel area in the first field and a plurality of pixel areas in the second field. 3.如权利要求2所述的影片模式检测装置,其中该像素位移预估器输出一相似度,该像素位移预估单元包含一第一判断器,耦合于该像素位移预估器,当该位移向量代表无位移时,用以依据比较该相似度与一第一临界值,以产生该第一判断值。3. The film mode detection device as claimed in claim 2, wherein the pixel displacement estimator outputs a similarity, the pixel displacement estimation unit comprises a first judger coupled to the pixel displacement estimator, when the The displacement vector represents when there is no displacement, and is used to generate the first judgment value based on comparing the similarity with a first critical value. 4.如权利要求1所述的影片模式检测装置,其中该图场位移判断单元包含有:4. The film mode detection device as claimed in claim 1, wherein the image field displacement judging unit comprises: 一图场位移预估器,用以累计所述相对应的第一判断值,以产生出相对应于该第一图场的一计数值;以及a field displacement estimator, used to accumulate the corresponding first judgment value to generate a count value corresponding to the first field; and 一第二判断器,耦合于该图场位移预估器,用以依据该计数值,以产生一第二判断值。A second judger, coupled to the field displacement estimator, is used to generate a second judgement value according to the count value. 5.一种用以检测一视讯数据的一影片模式的方法,该视讯数据是由多个图场所组成,该方法包含有:5. A method for detecting a film mode of a video data, the video data is composed of a plurality of image fields, the method comprising: 接收一第一图场与一第二图场;receiving a first field and a second field; 依据该第一图场的一目标像素区域以及该一第二图场的多个像素区域做比较,并获得相对应该目标像素区域的一位移向量以及一相似度;comparing a target pixel area of the first image field with a plurality of pixel areas of the second image field, and obtaining a displacement vector and a similarity corresponding to the target pixel area; 依据该位移向量以及该相似度,以产生相对应于该第一图场的一第一判断值;以及generating a first judgment value corresponding to the first image field according to the displacement vector and the similarity; and 依据所述第一判断值,产生一第二判断值。A second judgment value is generated according to the first judgment value. 6.如权利要求5所述的方法,其中当该位移向量代表无位移时,依据比较该相似度与一第一临界值,以产生该第一判断值。6. The method of claim 5, wherein when the displacement vector represents no displacement, the first judgment value is generated by comparing the similarity with a first critical value. 7.如权利要求5所述的方法,其中产生该第二判断值的步骤包含:7. The method as claimed in claim 5, wherein the step of generating the second judgment value comprises: 累计所述第一判断值,以产生出相对应于该第一图场的一计数值;以及accumulating the first judgment value to generate a count value corresponding to the first field; and 依据该计数值与一第二临界值,以产生相对应于该第一图场的第二判断值。A second judgment value corresponding to the first field is generated according to the count value and a second critical value. 8.一种用以检测一视讯数据的一影片模式的方法,该视讯数据是由多个图场所组成,该方法包含有:8. A method for detecting a film mode of a video data, the video data is composed of a plurality of image fields, the method comprising: 接收一第一图场与一第二图场;receiving a first field and a second field; 依据该第一图场的一目标像素区域以及该一第二图场的多个像素区域做比较,并获得相对应该目标像素区域的一位移向量;comparing a target pixel area of the first field with multiple pixel areas of the second field, and obtaining a displacement vector corresponding to the target pixel area; 依据所述位移向量,以产生相对应于该第一图场的一第二判断值;以及generating a second judgment value corresponding to the first field according to the displacement vector; and 依据所述第二判断值,产生一检测结果。A detection result is generated according to the second judgment value. 9.如权利要求8所述的方法,还包含有:9. The method of claim 8, further comprising: 累计所述位移向量,以产生出相对应于该第一图场的一计数值;以及accumulating the displacement vectors to generate a count value corresponding to the first field; and 依据该计数值与一第二临界值,以产生相对应于该第一图场的第二判断值。A second judgment value corresponding to the first field is generated according to the count value and a second critical value. 10.一种用以检测一视讯数据的一影片模式的影片模式检测装置,该视讯数据系为一由多个图场所组成,该装置包含有:10. A film mode detection device for detecting a film mode of a video data, the video data is composed of a plurality of image fields, the device comprises: 至少一位移预估与判断模块,该位移预估与判断模块包含有:At least one displacement estimation and judgment module, the displacement estimation and judgment module includes: 一像素位移预估单元,接收该视讯数据中的一第一图场及一第二图场,并依据该第一图场的一目标像素区域,与该第二图场中的多个像素区域提供对应于该目标像素区域的一位移向量以及一相似度;以及A pixel displacement estimation unit, receiving a first field and a second field in the video data, and based on a target pixel area of the first field and a plurality of pixel areas in the second field providing a displacement vector corresponding to the target pixel area and a similarity; and 一图场位移判断单元,耦合于该像素位移预估单元,依据该第一图场中的相对应的该位移向量以及该相似度,产生相对应于该第一图场的一第二判断值;以及A field displacement judging unit, coupled to the pixel displacement estimation unit, generates a second judgment value corresponding to the first field according to the corresponding displacement vector and the similarity in the first field ;as well as 一影片模式检测器,耦合于该至少一位移预估与判断模块,接收该至少一第二判断值,产生一判断结果。A film mode detector is coupled to the at least one displacement estimation and judging module, receives the at least one second judging value, and generates a judging result.
CNB2004100066236A 2004-02-25 2004-02-25 Film mode detection device for displacement vector estimation and related method Expired - Fee Related CN100426834C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100066236A CN100426834C (en) 2004-02-25 2004-02-25 Film mode detection device for displacement vector estimation and related method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100066236A CN100426834C (en) 2004-02-25 2004-02-25 Film mode detection device for displacement vector estimation and related method

Publications (2)

Publication Number Publication Date
CN1662035A true CN1662035A (en) 2005-08-31
CN100426834C CN100426834C (en) 2008-10-15

Family

ID=35011086

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100066236A Expired - Fee Related CN100426834C (en) 2004-02-25 2004-02-25 Film mode detection device for displacement vector estimation and related method

Country Status (1)

Country Link
CN (1) CN100426834C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527785A (en) * 2008-03-06 2009-09-09 瑞昱半导体股份有限公司 Image displacement detection method and related device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2648254B2 (en) * 1988-09-23 1991-08-30 Thomson Csf METHOD AND DEVICE FOR ESTIMATING MOTION IN A SEQUENCE OF MOVED IMAGES
US4876596A (en) * 1988-10-25 1989-10-24 Faroudja Y C Film-to-video converter with scan line doubling
US4982280A (en) * 1989-07-18 1991-01-01 Yves C. Faroudja Motion sequence pattern detector for video
US6987866B2 (en) * 2001-06-05 2006-01-17 Micron Technology, Inc. Multi-modal motion estimation for video sequences

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527785A (en) * 2008-03-06 2009-09-09 瑞昱半导体股份有限公司 Image displacement detection method and related device
CN101527785B (en) * 2008-03-06 2011-04-06 瑞昱半导体股份有限公司 Image displacement detection method and related device

Also Published As

Publication number Publication date
CN100426834C (en) 2008-10-15

Similar Documents

Publication Publication Date Title
CN1087892C (en) Motion adaptive scan-rate conversion using directional edge interpolation
CN1265633C (en) Interlacing-removing device and method
US8559517B2 (en) Image processing apparatus and image display apparatus provided with the same
CN1503564A (en) Motion estimation apparatus, method, and machine-readable medium capable of detecting scrolling text and graphic data
US20020149703A1 (en) Method, system and article of manufacture for identifying the source type and quality level of a video sequence
CN1509065A (en) Image signal format detection device and method thereof
CN1783995A (en) Frame rate conversion device, image display apparatus, and method of converting frame rate
CN1158052A (en) Moving Image Detection Method
US6897903B1 (en) Apparatus for detecting mixed interlaced and progressive original sources in a video sequence
CN1578478A (en) Apparatus and method for detecting a 2:2 pull-down sequence
CN1258288C (en) Motion tester and testing method
US8837595B2 (en) Motion estimation method
CN1758743A (en) Use the image processing equipment and the method thereof of shake mapping
CN1662035A (en) Film mode detection device and related method for displacement vector estimation
TWI236283B (en) Apparatus and related method for film mode detection using motion estimation
AU2004200237B2 (en) Image processing apparatus with frame-rate conversion and method thereof
CN100352261C (en) Detection method of 3:2 pull-down film source video
US20070248287A1 (en) Pattern detecting method and related image processing apparatus
US8331676B2 (en) Image processing apparatus and method, and program
CN1312924C (en) Texture information based video image motion detecting method
CN101119462A (en) Theater reduction sequence detection device and detection method, and computer program product
CN100385937C (en) Image de-interlacing method and device using displacement vector compensation
CN100407764C (en) image field processing method and related image field similarity detection device
TW201021565A (en) Apparatus and method for motion adaptive interlacing
US20050206790A1 (en) Method and apparatus for processing video signals

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081015

Termination date: 20170225